Collective Loop Fusion for Array Contraction
Collective Loop Fusion for Array Contraction
复制标题
用于数组收缩的集体循环融合
DOI:
--
复制
发表时间:
1992
期刊:
影响因子:
--
通讯作者:
R. Thekkath
中科院分区:
文献类型:
--
作者:
G. Gao;R. Olsen;Vivek Sarkar;R. Thekkath
In this paper we propose a loop fusion algorithm specifically designed to increase opportunities for array contraction. Array contraction is an optimization that transforms array variables into scalar variables within a loop nest. In contrast to array elements, scalar variables have better cache behavior and can be allocated to registers. In past work we investigated loop interchange and loop reversal as optimizations that increase opportunities for array contraction [13]. This paper extends this work by including the loop fusion optimization. The fusion method discussed in this paper uses the maxflow-mincut algorithm to do loop clustering. Our collective loop fusion algorithm is efficient, and we demonstrate its usefulness for array contraction with a simple example.