Skip to content

Lexicon Entry

Dead Code Elimination

A compiler optimization that removes code which can never be executed or whose results are never used.

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.