A Technique for the Effective and Automatic Reuse of Classical Compiler Optimizations on Multithreaded Code

被引:0
作者
Joisha, Pramod G. [1 ]
Schreiber, Robert S. [1 ]
Banerjee, Prithviraj [1 ]
Boehm, Hans-J. [1 ]
Chakrabarti, Dhruva R. [1 ]
机构
[1] Hewlett Packard Labs, Palo Alto, CA USA
关键词
Data-Flow Analysis; Parallel-Program Optimization; EFFICIENT; PROGRAMS;
D O I
10.1145/1925844.1926457
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A large body of data-flow analyses exists for analyzing and optimizing sequential code. Unfortunately, much of it cannot be directly applied on parallel code, for reasons of correctness. This paper presents a technique to automatically, aggressively, yet safely apply sequentially-sound data-flow transformations, without change, on shared-memory programs. The technique is founded on the notion of program references being "siloed" on certain control-flow paths. Intuitively, siloed references are free of interference from other threads within the confines of such paths. Data-flow transformations can, in general, be unblocked on siloed references. The solution has been implemented in a widely used compiler. Results on benchmarks from SPLASH-2 show that performance improvements of up to 41% are possible, with an average improvement of 6% across all the tested programs over all thread counts.
引用
收藏
页码:623 / 636
页数:14
相关论文
共 42 条
[1]   Shared memory consistency models: A tutorial [J].
Adve, SV ;
Gharachorloo, K .
COMPUTER, 1996, 29 (12) :66-&
[2]  
[Anonymous], 1990, P ISCA, DOI DOI 10.1145/325164.325100
[3]  
[Anonymous], 1999, P OBJ OR SYST LANG
[4]  
[Anonymous], PPOPP NEW YORK NY US
[5]  
Board O., OPENMP FOR
[6]   Foundations of the C++ concurrency memory model [J].
Boehm, Hans-J. ;
Adve, Sarita V. .
ACM SIGPLAN NOTICES, 2008, 43 (06) :68-78
[7]  
Bristow G., 1979, Proceedings of the 4th International Conference on Software Engineering, P265
[8]  
CALLAHAN D, 1988, P ACM SIGPLAN SIGOPS, P100, DOI DOI 10.1145/68210.69225
[9]  
Chow F., 1996, Compiler Construction. 6th International Conference, CC'96. Proceedings, P253
[10]  
Duesterwald Evelyn, 1991, TAV4, P36, DOI DOI 10.1145/120807.120811