Optimization opportunities created by global data reordering

被引:5
作者
Haber, G [1 ]
Klausner, M [1 ]
Eisenberg, V [1 ]
Mendelson, B [1 ]
Gurevich, M [1 ]
机构
[1] IBM Corp, Res Lab, Haifa, Israel
来源
CGO 2003: INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION | 2003年
关键词
D O I
10.1109/CGO.2003.1191548
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Memory access has proven to be one of the bottlenecks in modern architectures. Improving memory locality and eliminating the amount of memory access can help release this bottleneck We present a method for link-time profile-based optimization by reordering the global data of the program and modifying its code accordingly. The proposed optimization reorders the entire global data of the program, according to a representative execution rate of each instruction (or basic block) in the code. The data reordering is done in a way that enables the replacement of frequently-executed Load instructions, which reference the global data, with fast Add Immediate instructions. In addition, it tries to improve the global data locality and to reduce the total size of the global data area. The optimization was implemented into FDPR (Feedback Directed Program Restructuring), a post-link optimizer, which is part of the IBM AIX operating system for the IBM pSeries servers. Our results on SPECint2000 show a significant improvement of up to 11% (average 3?lo) in execution time, along with up to 97.9% (average 83%) reduction in memory references to the global variables via the global data access mechanism of the program.
引用
收藏
页码:228 / 237
页数:10
相关论文
共 14 条
[1]  
BLAINEY RJ, Patent No. 5850549
[2]  
CALDER B, 1998, 8 INT C ARCH SUPP PR, P139
[3]  
CALDER B, 1994, 6 INT C ARCH SUPP PR, P242
[4]   Hot cold optimization of large Windows/NT applications [J].
Cohn, R ;
Lowney, PG .
PROCEEDINGS OF THE 29TH ANNUAL IEEE/ACM INTERNATIONAL SYMPOSIUM ON MICROARCHITECTURE - MICRO-29, 1996, :80-89
[5]  
Cohn R. S., 1997, Digital Technical Journal, V9, P3
[6]  
HABER G, 2000, P 3 WORKSH FEEDB DIR
[7]  
HENIS EA, 1999, 2 WORKSH FEEDB DIR O, P13
[8]  
MUEHNICK SS, 1997, ADV COMPILER DESIGN
[9]  
MUTH R, 1998, 9814 U AR DEPT COMP
[10]  
Pettis K., 1990, SIGPLAN Notices, V25, P16, DOI 10.1145/93548.93550