Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Constant propagation?

También llamado: constant folding

Definition 8.11 University Computer Science — Year 3 · Capítulo 8 — Program Analysis and Optimisation

Constant propagation is the forward analysis whose fact at each point maps each temporary to ⊥\bot, a constant kk, or ⊤\top, joined pointwise in the lattice of the figure above; the parameters are ⊤\top at the entry. Its transformation replaces a use of a temporary by kk where the fact says kk, computes at compile time an operation whose operands are constants (constant folding), and replaces a branch whose outcome is then known by a jump or by nothing.

Leer en el capítulo →