Title :
A general compiler framework for speculative optimizations using data speculative code motion
Author :
Dai, Xiaoru ; Zhai, Antonia ; Hsu, Wei-Chung ; Yew, Pen-Chung
Author_Institution :
Dept. of Comput. Sci. & Eng., Minnesota Univ., Minneapolis, MN, USA
Abstract :
Data speculative optimization refers to code transformations that allow load and store instructions to be moved across potentially dependent memory operations. Existing research work on data speculative optimizations has mainly focused on individual code transformation. The required speculative analysis that identifies data speculative optimization opportunities and the required recovery code generation that guarantees the correctness of their execution are handled separately for each optimization. This paper proposes a new compiler framework to facilitate the design and implementation of general data speculative optimizations such as dead store elimination, redundancy elimination, copy propagation, and code scheduling. This framework allows different data speculative optimizations to share the followings: (i) a speculative analysis mechanism to identify data speculative optimization opportunities by ignoring low probability data dependences from optimizations, and (ii) a recovery code generation mechanism to guarantee the correctness of the data speculative optimizations. The proposed recovery code generation is based on data speculative code motion (DSCM) that uses code motion to facilitate a desired transformation. Based on the position of the moved instruction, recovery code can be generated accordingly. The proposed framework greatly simplifies the task of incorporating data speculation into non-speculative optimizations by sharing the recovery code generation and the speculative analysis. We have implemented the proposed framework in the ORC 2.1 compiler and demonstrated its effectiveness on SPEC2000 benchmark programs.
Keywords :
benchmark testing; optimising compilers; parallel programming; redundancy; storage management; ORC 2.1 compiler; SPEC2000 benchmark program; code scheduling; code transformation; copy propagation; data speculative code motion; data speculative optimization; dead store elimination; memory operation; probability data dependence; recovery code generation mechanism; redundancy elimination; speculative optimization; Computer science; Data analysis; Data engineering; Data structures; Delay; Design optimization; Optimizing compilers; Program processors; Runtime;
Conference_Titel :
Code Generation and Optimization, 2005. CGO 2005. International Symposium on
Print_ISBN :
0-7695-2298-X