Global value numbering (GVN)
Every computed value gets a number, and two expressions with the same number are provably equal — so the second one can go.
Local value numbering is old and works inside a single basic block: a + b and b + a hash to the same number, and a repeat reuses the earlier result. The global version, published by Alpern, Wegman and Zadeck in 1988, scales the idea up to a whole function using SSA form and can show that two variables are congruent even when they were computed on entirely different lines.
GVN covers much of what textual CSE does, but looks past names to the values themselves. LLVM has a pass literally called GVN, which also folds redundant memory loads with help from alias analysis. Value numbering decides that something was already computed; the dominator tree decides whether that result is guaranteed to be available where it is needed.