One embodiment of the invention is a method for forming a solver for a
loop nest of code, the method comprising forming a time and space mapping
of a portion of the loop nest, performing at least one optimization that
is dependent on the time and space mapping to the portion of the loop
nest, and forming a solver from the optimized portion of the loop nest.