Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Copy propagation, value numbering, dead code » ?

Aussi appelé : copy propagation · value numbering · dead code

Definition 8.13 University Computer Science — Year 3 · Chapitre 8 — Program Analysis and Optimisation

Copy propagation replaces a use of xx by yy where the copy x=yx = y is available: on every path to the point, it was executed and neither xx nor yy was written since. Value numbering gives each computed value a number, such that two operations with the same operator on operands with the same numbers get the same number; a computation whose value already has a temporary is replaced by a copy of it. An instruction is dead code if it can never run, or if it has no effect but writing a temporary that is not live after it; dead-code elimination removes it.

Lire dans le chapitre →