SCCP (sparse conditional constant propagation)
Constant propagation over SSA form that simultaneously works out which branches can never be taken — and so finds constants a simpler analysis misses.
Mark Wegman and Kenneth Zadeck published the algorithm in 1991, building on an earlier POPL 1985 version. Every SSA value sits in a three-level lattice: not yet known, a specific constant, or varying. Two worklists run side by side, one of control-flow edges found to be reachable and one of SSA edges whose value has changed. A branch on a constant condition only opens one successor, and a φ-function only considers incoming values that can actually arrive.
The power is in the combination. Running constant propagation and dead-code elimination alternately in a loop does not get the same result, because a value that is only constant if some branch is dead never gets noticed. LLVM has the sccp pass and an interprocedural sibling, ipsccp; GCC's counterpart is -ftree-ccp.