Reassociation
Rearranging the parentheses in an expression using associativity and commutativity, so that other optimizations find more to work with.
(x + 4) + 8 has nothing to fold, but rewritten as x + (4 + 8) it becomes x + 12. Likewise, a + b + c and c + a + b can only be recognised as the same computation if both are first sorted into a canonical order. LLVM's Reassociate pass assigns each operand a rank — constants lowest, loop-invariant values ahead of things that change every iteration — and rebuilds the expression trees accordingly. That feeds constant folding, CSE and loop-invariant code motion.
For integers anything goes, since overflow wraps anyway. Floating point is another matter: (a + b) + c and a + (b + c) can give different answers, so the compiler keeps its hands off without -ffast-math or -fassociative-math. That is why a plain summation loop over float isn't vectorized by default — vectorizing a sum is a reassociation.