Stack coloring
The optimization that lets local variables with non-overlapping lifetimes share the same slot in the stack frame.
Two 4 KB buffers in different arms of a switch never coexist, yet a naive compiler gives each its own slot and the function eats 8 KB of stack. Stack coloring solves the register allocation problem for memory instead: variables live at the same time get an edge in an interference graph, and each colour becomes a stack slot. LLVM has a pass literally called StackColoring, driven by the lifetime.start and lifetime.end markers the front end emits. GCC controls the same thing with -fstack-reuse.
The payoff is largest where stacks are small, such as the Linux kernel, where each thread gets a handful of kilobytes. The downside is that a pointer outliving its block now points into someone else's data. That was undefined behaviour all along, but stack coloring is what makes the bug visible — hence AddressSanitizer's use-after-scope mode.