General compiler framework for speculative optimizations using data speculative code motion

被引:0
|
作者
Dai, XR [1 ]
Zhai, A [1 ]
Hsu, WC [1 ]
Yew, PC [1 ]
机构
[1] Univ Minnesota, Dept Comp Sci & Engn, Minneapolis, MN 55455 USA
关键词
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页码:280 / 290
页数:11
相关论文
共 50 条
  • [1] A compiler framework for recovery code generation in general speculative optimizations
    Lin, J
    Hsu, WC
    Yew, PC
    Ju, RDC
    Ngai, TF
    [J]. 13TH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURE AND COMPILATION TECHNIQUES, PROCEEDINGS, 2004, : 17 - 28
  • [2] A compiler framework for speculative analysis and optimizations
    Lin, J
    Chen, T
    Hsu, WC
    Ju, RDC
    Ngai, TF
    Yew, PC
    Chan, S
    [J]. ACM SIGPLAN NOTICES, 2003, 38 (05) : 289 - 299
  • [3] A general compiler framework for speculative multithreaded processors
    Bhowmik, A
    Franklin, M
    [J]. IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 2004, 15 (08) : 713 - 724
  • [4] Prospect: A Compiler Framework for Speculative Parallelization
    Suesskraut, Martin
    Knauth, Thomas
    Weigert, Stefan
    Schiffel, Ute
    Meinhold, Martin
    Fetzer, Christof
    [J]. CGO 2010: THE EIGHTH INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION, PROCEEDINGS, 2010, : 131 - +
  • [5] Data dependence profiling for speculative optimizations
    Chen, T
    Lin, J
    Dai, XR
    Hsu, WC
    Yew, PC
    [J]. COMPILER CONSTRUCTION, PROCEEDINGS, 2004, 2985 : 57 - 72
  • [6] Partial redundancy elimination for access expressions by speculative code motion
    Kawahito, M
    Komatsu, H
    Nakatani, T
    [J]. SOFTWARE-PRACTICE & EXPERIENCE, 2004, 34 (11): : 1065 - 1090
  • [7] Dynamic and Speculative Polyhedral Parallelization Using Compiler-Generated Skeletons
    Jimborean, Alexandra
    Clauss, Philippe
    Dollinger, Jean-Francois
    Loechner, Vincent
    Caamano, Juan Manuel Martinez
    [J]. INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 2014, 42 (04) : 529 - 545
  • [8] Dynamic and Speculative Polyhedral Parallelization Using Compiler-Generated Skeletons
    Alexandra Jimborean
    Philippe Clauss
    Jean-François Dollinger
    Vincent Loechner
    Juan Manuel Martinez Caamaño
    [J]. International Journal of Parallel Programming, 2014, 42 : 529 - 545
  • [9] SpecRPC: A General Framework for Performing Speculative Remote Procedure Calls
    Yan, Xinan
    Joa, Arturo Pie
    Wong, Bernard
    Cassell, Benjamin
    Szepesi, Tyler
    Naouach, Malek
    Lam, Disney
    [J]. MIDDLEWARE'18: PROCEEDINGS OF THE 2018 ACM/IFIP/USENIX MIDDLEWARE CONFERENCE, 2018, : 266 - 278
  • [10] FAD.js']js: Fast JSON']JSON Data Access Using JIT-based Speculative Optimizations
    Bonetta, Daniele
    Brantner, Matthias
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2017, 10 (12): : 1778 - 1789