Optimizing Imperfectly-Nested Loop Mapping on CGRAs Via Polyhedral-Guided Flattening

Xingyu Mo,Yawen Li,Dajiang Liu
DOI: https://doi.org/10.23919/date58400.2024.10546785
2024-01-01
Abstract:Coarse-Grained Reconfigurable Arrays (CGRAs) offer a promising balance between high performance and power efficiency. To reduce the invocation overhead when mapping an imperfectly nested loop, loop flattening is used to transform the nested loop into a single-level loop. However, loop flattening not only leads to a big loop body but also has a narrow application scope. To this end, this work proposes a polyhedral model-based loop flattening approach for imperfectly nested loop mapping. By exploring loop structures via polyhedral transformation, we can find a flattening-friendly loop structure with more data reuse opportunities and reduced sibling loops, resulting in improved loop pipelining performance. Experimental results demonstrate a remarkable (1.37-1.62x) speedup compared to the state-of-the-art approaches while maintaining short compilation times.
What problem does this paper attempt to address?