Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Constant propagation » ?

Aussi appelé : constant folding

Definition 8.11 University Computer Science — Year 3 · Chapitre 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.

Lire dans le chapitre →