Jump threading
An optimization that sends a path through the program straight to the right target when the outcome of a later branch is already known along that path.
If one block sets flag = true and the next tests if (flag), the test is pointless for anyone arriving that way. Jump threading duplicates the intermediate block and rewires the edge, so that path runs straight through while other paths keep the test. Frank Mueller and David Whalley described the technique in 1995 as avoiding conditional branches by code replication, and both GCC and LLVM have had dedicated passes for it since.
The price is code size, and in the worst case a control-flow graph so scrambled that loops become irreducible and other optimizations give up. The passes therefore have strict limits on how much they may duplicate. The payoff shows up mostly in state machines and parsers, where the same variable gets tested over and over.