DocumentCode
3305481
Title
Revisiting Out-of-SSA Translation for Correctness, Code Quality and Efficiency
Author
Boissinot, Benoit ; Darte, Alain ; Rastello, Fabrice ; De Dinechin, Benoit Dupont ; Guillon, Christophe
Author_Institution
CNRS, ENS Lyon, Lyon
fYear
2009
fDate
22-25 March 2009
Firstpage
114
Lastpage
125
Abstract
Static single assignment (SSA) form is an intermediate program representation in which many code optimizations can be performed with fast and easy-to-implement algorithms. However, some of these optimizations create situations where the SSA variables arising from the same original variable now have overlapping live ranges. This complicates the translation out of SSA code into standard code. There are three issues to consider: correctness, code quality (elimination of copies), and algorithm efficiency (speed and memory footprint). Briggs et al. proposed patches to correct the initial approach of Cytron et al. A cleaner and more general approach was proposed by Sreedhar et al., along with techniques to reduce the number of generated copies. We propose a new approach based on coalescing and a precise view of interferences, in which correctness and optimizations are separated. Our approach is provably correct and simpler to implement, with no patches or particular cases as in previous solutions, while reducing the number of generated copies. Also, experiments with SPEC CINT2000 show that it is 2x faster and 10x less memory-consuming than the Method III of Sreedhar et al., which makes it suitable for just-in-time compilation.
Keywords
program compilers; software engineering; algorithm efficiency; code optimizations; code quality; intermediate program representation; out-of-SSA translation; static single assignment; Algorithm design and analysis; Code standards; Constraint optimization; Costs; Design optimization; Flow graphs; Interference; Optimizing compilers; Program processors; Tree graphs; Compilers; JIT-compilation; SSA form;
fLanguage
English
Publisher
ieee
Conference_Titel
Code Generation and Optimization, 2009. CGO 2009. International Symposium on
Conference_Location
Seattle, WA
Print_ISBN
978-0-7695-3576-0
Type
conf
DOI
10.1109/CGO.2009.19
Filename
4907656
Link To Document