Suppose I have the following C code:
int i = 5; int j = 10; int result = i + j;
If I\'m looping over this many times, would it be faster to
This is an easy task to optimize for an optimizing compiler. It will delete all variables and replace result with 15.
result
15
Constant folding in SSA form is pretty much the most basic optimization there is.