arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1406.0582cs.PL
收藏

基于平铺技术的寄存器优化

A Tiling Perspective for Register Optimization

Lukasz Domagala, Fabrice Rastello, Sadayappan Ponnuswany, Duco Van Amstel

摘要:

寄存器分配是一个研究较多的问题。优化寄存器分配的一个特别重要的上下文是在循环内,因为程序执行时间的很大一部分通常在循环代码内。在过去已经提出了各种各样的算法用于寄存器分配,但问题的复杂性导致了几个重要方面的解耦,包括循环展开、寄存器提升和指令重新排序。在本文中,我们开发了一种方法,在一个统一的优化框架,同时考虑循环展开和指令调度的影响,寄存器分配和促进。这是通过一种新颖的指令平铺方法来完成的,其中循环内的指令沿着一个维度表示,并且沿着另一个维度表示最内层循环迭代。通过利用沿循环维度的规律性,并施加必要的依赖性的内部瓦片执行顺序的约束,优化寄存器压力的问题是在约束编程形式主义。实验结果提供了从SPEC基准测试中提取的数千个最内层循环,证明了对当前最先进技术的改进。

英文摘要:

Register allocation is a much studied problem. A particularly important context for optimizing register allocation is within loops, since a significant fraction of the execution time of programs is often inside loop code. A variety of algorithms have been proposed in the past for register allocation, but the complexity of the problem has resulted in a decoupling of several important aspects, including loop unrolling, register promotion, and instruction reordering. In this paper, we develop an approach to register allocation and promotion in a unified optimization framework that simultaneously considers the impact of loop unrolling and instruction scheduling. This is done via a novel instruction tiling approach where instructions within a loop are represented along one dimension and innermost loop iterations along the other dimension. By exploiting the regularity along the loop dimension, and imposing essential dependence based constraints on intra-tile execution order, the problem of optimizing register pressure is cast in a constraint programming formalism. Experimental results are provided from thousands of innermost loops extracted from the SPEC benchmarks, demonstrating improvements over the current state-of-the-art.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑