The BasicOptimizer only performs two optimizations: constant
folding and dead code elimination.
Expressions that contain known values at compile time can
be replaced with a constant expression. This basic optimization is
known as constant folding. It improves runtime performance and reduces
the size of generated code.
Statements that are known at compile time to be unreachable (sometimes
as a result of constant folding) can be removed. This is dead code
elimination, and it mainly reduces the size of generated code. It can also
improve runtime performance.
author: Brian S O'Neill version: 45 6 5/31/01 |