constant propagation
Replacing a variable with its value wherever the compiler can prove that value is a known constant.
Constant propagation substitutes known constant values for the variables that hold them, enabling further constant folding and dead-code elimination.
See also