3.5.19 What Optimizations Are Employed by the Compiler?
Optimizations are employed at both the C and assembly level of compilation. These are described in 5.13 Optimizations and 6.2 Assembly-Level Optimizations respectively. The options that control optimization are described in 4.6.6 Options for Controlling Optimization.