Unroll-and-jam
A loop transformation that unrolls the outer loop of a nested pair and then fuses the resulting copies of the inner loop.
Ordinary unrolling works on the innermost loop. Here the outer loop is unrolled instead, say twice, leaving two copies of the inner loop one after the other. Those are then jammed into one, so each inner iteration works on two outer indices at once. A value both need, such as a matrix element in a matrix multiply, is loaded once and used twice straight from a register.
Callahan, Carr and Kennedy described the technique in 1990 as a way to get register allocation to keep array elements around. It is only legal if the dependences survive the new ordering. LLVM has a dedicated pass, but it is off by default; push the factor too far and register pressure turns the gain into spills.