constant folding
Working out an expression whose values are all known while compiling, so the program just uses the answer.
Constant folding evaluates operations on compile-time-constant operands during compilation and replaces them with the result.
Examples
int x = 3 * 4;compiles tomov eax, 12.
See also