Register promotion by sparse partial redundancy elimination of loads and stores
Register promotion by sparse partial redundancy elimination of loads and stores
复制标题
通过加载和存储的稀疏部分冗余消除来提升寄存器
DOI:
10.1145/277650.277659
复制
发表时间:
1998
期刊:
影响因子:
--
通讯作者:
P. Tu
中科院分区:
文献类型:
--
作者:
Fred C. Chow;Robert Kennedy;Shin;R. Lo;P. Tu
An algorithm for register promotion is presented based on the observation that the circumstances for promoting a memory location's value to register coincide with situations where the program exhibits partial redundancy between accesses to the memory location. The recent SSAPRE algorithm for eliminating partial redundancy using a sparse SSA representation forms the foundation for the present algorithm to eliminate redundancy among memory accesses, enabling us to achieve both computational and live range optimality in our register promotion results. We discuss how to effect speculative code motion in the SSAPRE framework. We present two different algorithms for performing speculative code motion: the conservative speculation algorithm used in the absence of profile data, and the the profile-driven speculation algorithm used when profile data are available. We define the static single use (SSU) form and develop the dual of the SSAPRE algorithm, called SSUPRE, to perform the partial redundancy elimination of stores. We provide measurement data on the SPECint95 benchmark suite to demonstrate the effectiveness of our register promotion approach in removing loads and stores. We also study the relative performance of the different speculative code motion strategies when applied to scalar loads and stores.