Polyhedral model
A mathematical framework that treats the iterations of a loop nest as integer points inside a polyhedron, so loops can be rescheduled with linear algebra.
A double loop over i and j with affine bounds is really a triangle or rectangle of points. If the array subscripts are affine too, the dependences between iterations can be computed exactly, and a reordering — interchange, tiling, skewing, fusion — becomes an affine transformation that can be proven legal. Paul Feautrier laid the groundwork with his papers on array dataflow analysis and scheduling in 1991–1992.
The model lives on in GCC's Graphite and LLVM's Polly, and the PLUTO tool from 2008 finds tilings automatically. The catch is that real code is rarely affine. Pointers, indirect subscripts and function calls in the loop body mean only small regions of typical programs — SCoPs, static control parts — can be modelled at all. Where it does apply, in dense linear algebra and stencil codes, it beats almost anything written by hand.