Dead code elimination

In compiler theory, __dead code elimination__ (also known as __DCE__, __dead code removal__, __dead code stripping__, or __dead code strip__) is a compiler optimization to remove code which does not affect the program results. Removing such code has several benefits: it shrinks program size, an important consideration in some contexts, and it allows the running program to avoid executing irrelevant operations, which reduces its running time. It can also enable further optimizations by simplifying program structure - wikipedia

''Dead code'' includes code that can never be executed (''unreachable code''), and code that only affects ''dead variables'' (written to, but never read again), that is, irrelevant to the program.

# Sections

# See also