Lexicon Entry
Compiler Optimization
Compiler optimization refers to the various passes (like constant folding, dead code elimination, and loop unrolling) a compiler applies to the IR to produce faster or smaller machine code.
Related Knowledge & Cross-References
Guide
The Ultimate Guide to Compiler Optimization Passes: Boosting Performance with -O2
You have written your code, but how does the compiler make it run three times faster when you enable optimizations? We demystify compiler optimization passes and see exactly what happens under the hood.