Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Copy propagation, value numbering, dead code?

Ook bekend als: copy propagation · value numbering · dead code

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

Lees in het hoofdstuk →