Loop quasi-invariance code motion

被引:0
|
作者
Song, LT [1 ]
Futamura, Y
Glück, R
Hu, ZJ
机构
[1] Waseda Univ, Grad Sch Sci & Engn, Dept Informat & Comp Sci, Tokyo 1690072, Japan
[2] Univ Tokyo, Dept Informat Engn, Tokyo 1130033, Japan
来源
关键词
loop quasi-invariance; code motion; program optimization; partial evaluation;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Loop optimization plays an important role in compiler optimization and program transformation. Many sophisticated techniques such as loop-invariance code motion, loop restructuring and loop fusion have been developed. This paper introduces a novel technique called loop quasi-invariance code motion. It is a generalization of standard loop-invariance code motion, but based on loop quasi-invariance analysis. Loop quasi-invariance is similar iu standard loop-invariance but allows for a finite number of iterations before computations in a loop become invariant. In this paper we define the notion of loop quasi-invariance, present an algorithm for statically computing the optimal unfolding length in While-programs and give a transformation method. Our method carl increase the accuracy of program analyses and improve the efficiency of programs by making loops smaller and faster. Our technique is well-suited as supporting transformation in compilers, partial evaluators, and other program transformers.
引用
收藏
页码:1841 / 1850
页数:10
相关论文
共 50 条