DocumentCode :
3351098
Title :
Low-cost register-pressure prediction for scalar replacement using pseudo-schedules
Author :
Ma, Yin ; Carr, Steve ; Ge, Rong
Author_Institution :
Dept. of Comput. Sci., Michigan Technol. Univ., Houghton, MI, USA
fYear :
2004
fDate :
15-18 Aug. 2004
Firstpage :
116
Abstract :
Scalar replacement is an effective optimization for removing memory accesses. However, exposing all possible array reuse with scalars may cause a significant increase in register pressure, resulting in register spilling and performance degradation. We present a low cost method to predict the register pressure of a loop before applying scalar replacement on high-level source code, called pseudo-schedule register prediction (PRP), that takes into account the effects of both software pipelining and register allocation. PRP attempts to eliminate the possibility of degradation from scalar replacement due to register spilling while providing opportunities for a good speedup. PRP uses three approximation algorithms: one for constructing a data dependence graph, one for computing the recurrence constraints of a software pipelined loop, and one for building a pseudo-schedule. Our experiments show that PRP predicts the floating-point register pressure within 2 registers and the integer register pressure within 2.7 registers on average with a time complexity of O(n2) in practice. PRP achieves similar performance to the best previous approach, having O(n3) complexity, with less than one-fourth of the compilation time on our test suite.
Keywords :
computational complexity; optimising compilers; pipeline processing; program control structures; data dependence graph; floating-point register; memory access; pseudo-schedule register prediction; register allocation; register-pressure prediction; scalar replacement; software pipelining; time complexity; Approximation algorithms; Buildings; Computer science; Costs; Degradation; Filling; Pipeline processing; Registers; Software algorithms; Software performance;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Parallel Processing, 2004. ICPP 2004. International Conference on
ISSN :
0190-3918
Print_ISBN :
0-7695-2197-5
Type :
conf
DOI :
10.1109/ICPP.2004.1327911
Filename :
1327911
Link To Document :
بازگشت