An SSA-based Algorithm for Optimal Speculative Code Motion under an Execution Profile

被引:2
|
作者
Zhou, Hucheng [1 ]
Chen, Wenguang [1 ]
Chow, Fred
机构
[1] Tsinghua Univ, Beijing 100084, Peoples R China
关键词
Algorithms; Design; Experimentation; Measurement; Performance; Theory; Code motion; Flow network; Minimum cut; Partial redundancy elimination; Profiling; Speculation; Static single assignment;
D O I
10.1145/1993316.1993510
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
To derive maximum optimization benefits from partial redundancy elimination (PRE), it is necessary to go beyond its safety constraint. Algorithms for optimal speculative code motion have been developed based on the application of minimum cut to flow networks formed out of the control flow graph. These previous techniques did not take advantage of the SSA form, which is a popular program representation widely used in modern-day compilers. We have developed the MC-SSAPRE algorithm that enables an SSA-based compiler to take full advantage of SSA to perform optimal speculative code motion efficiently when an execution profile is available. Our work shows that it is possible to form flow networks out of SSA graphs, and the min-cut technique can be applied equally well on these flow networks to find the optimal code placement. We provide proofs of the correctness and computational and lifetime optimality of MC-SSAPRE. We analyze its time complexity to show its efficiency advantage. We have implemented MC-SSAPRE in the open-sourced Path64 compiler. Our experimental data based on the full SPEC CPU2006 Benchmark Suite show that MC-SSAPRE can further improve program performance over traditional SSAPRE, and that our sparse approach to the problem does result in smaller problem sizes.
引用
收藏
页码:98 / 108
页数:11
相关论文
共 50 条
  • [11] Research on Motion Profile Smooth Control Algorithm Based on Continuous Jerk
    Zhao Guoyong
    Zhao Yugang
    Hou Ronggguo
    APPLIED MECHANICS AND MECHANICAL ENGINEERING, PTS 1-3, 2010, 29-32 : 2002 - 2007
  • [12] Searching Method for Optimal Code Sequence of Coded Exposure Based on Memetic Algorithm
    Cui Guangmang
    Yu Kuaikuai
    Ye Xiaojie
    Zhao Jufeng
    Zhu Liyao
    ACTA OPTICA SINICA, 2019, 39 (03)
  • [13] Robust Optimal Motion Cueing Algorithm Based on the Linear Quadratic Regulator Method and a Genetic Algorithm
    Asadi, Houshyar
    Mohamed, Shady
    Lim, Chee Peng
    Nahavandi, Saeid
    IEEE TRANSACTIONS ON SYSTEMS MAN CYBERNETICS-SYSTEMS, 2017, 47 (02): : 238 - 254
  • [14] Spot-based LIDAR profile estimation algorithm for mobile robots in motion
    Horichi, Kosei
    Kinoshita, Tetsuo
    Yoshida, Tomoya
    Kobayashi, Kazuyuki
    2016 55TH ANNUAL CONFERENCE OF THE SOCIETY OF INSTRUMENT AND CONTROL ENGINEERS OF JAPAN (SICE), 2016, : 237 - 242
  • [15] A Contrast-Based Algorithm For Synthetic Range-Profile Motion Compensation
    Berizzi, Fabrizio
    Martorella, Marco
    Cacciamano, Andrea
    Capria, Amerigo
    IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2008, 46 (10): : 3053 - 3062
  • [16] Genetic algorithm based optimal placement of PIR sensors for human motion localization
    Guodong Feng
    Min Liu
    Guoli Wang
    Optimization and Engineering, 2014, 15 : 643 - 656
  • [17] Genetic algorithm based optimal placement of PIR sensors for human motion localization
    Feng, Guodong
    Liu, Min
    Wang, Guoli
    OPTIMIZATION AND ENGINEERING, 2014, 15 (03) : 643 - 656
  • [18] Risk-DTRRT-Based Optimal Motion Planning Algorithm for Mobile Robots
    Chi, Wenzheng
    Wang, Chaoqun
    Wang, Jiankun
    Meng, Max Q-H
    IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING, 2019, 16 (03) : 1271 - 1288
  • [19] Optimal motion planning method of manipulator based on hybrid honey badger algorithm
    Huang, Cheng
    Wang, Tao
    Xu, Jiazhong
    Yi Qi Yi Biao Xue Bao/Chinese Journal of Scientific Instrument, 2024, 45 (04): : 234 - 247
  • [20] A genetic algorithm-based nonlinear scaling method for optimal motion cueing algorithm in driving simulator
    Asadi, Houshyar
    Lim, Chee Peng
    Mohammadi, Arash
    Mohamed, Shady
    Nahavandi, Saeid
    Shanmugam, Lakshmanan
    PROCEEDINGS OF THE INSTITUTION OF MECHANICAL ENGINEERS PART I-JOURNAL OF SYSTEMS AND CONTROL ENGINEERING, 2018, 232 (08) : 1025 - 1038