Synthesizing transformations for locality enhancement of imperfectly-nested loop nests

Nawaaz Ahmed, Nikolay Mateev, Keshav Pingali
2014 25th Anniversary International Conference on Supercomputing Anniversary Volume -  
We present an approach for synthesizing transformations to enhance locality in imperfectly-nested loops. The key idea is to embed the iteration space of every statement in a loop nest into a special iteration space called the product space. The product space can be viewed as a perfectly-nested loop nest, so embedding generalizes techniques like code sinking and loop fusion that are used in ad hoc ways in current compilers to produce perfectly-nested loops from imperfectly-nested ones. In
more » ... t to these ad hoc techniques however, our embeddings are chosen carefully to enhance locality. The product space is then transformed further to enhance locality, after which fully permutable loops are tiled, and code is generated. We evaluate the effectiveness of this approach for dense numerical linear algebra benchmarks, relaxation codes, and the tomcatv code from the SPEC benchmarks.
doi:10.1145/2591635.2667179 fatcat:x3uqhtqh55exzd6guuapwahiui