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 条
  • [41] An Optimal Motion Planning and Obstacle Avoidance Algorithm Based on the Finite Time Velocity Obstacle Approach
    Samavati, Sepehr
    Zarei, Mojaba
    Masouleh, Mehdi Tale
    2017 19TH CSI INTERNATIONAL SYMPOSIUM ON ARTIFICIAL INTELLIGENCE AND SIGNAL PROCESSING (AISP), 2017, : 250 - 255
  • [42] Hybrid ant colony and immune network algorithm based on improved APF for optimal motion planning
    Yuan Mingxin
    Wang Sun'an
    Wu Canyang
    Li Kunpeng
    ROBOTICA, 2010, 28 : 833 - 846
  • [43] New Sorting-Based Partial Distortion Elimination Algorithm for Fast Optimal Motion Estimation
    Choi, Changryoul
    Jeong, Jechang
    IEEE TRANSACTIONS ON CONSUMER ELECTRONICS, 2009, 55 (04) : 2335 - 2340
  • [44] An Asymptotically-Optimal Sampling-Based Algorithm for Bi-directional Motion Planning
    Starek, Joseph A.
    Gomez, Javier V.
    Schmerling, Edward
    Janson, Lucas
    Moreno, Luis
    Pavone, Marco
    2015 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS (IROS), 2015, : 2072 - 2078
  • [45] A near-optimal sensor-based motion-planning algorithm for parts mating
    Noborio, H
    Kadowaki, M
    Urakawa, K
    1998 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS - PROCEEDINGS, VOLS 1-3: INNOVATIONS IN THEORY, PRACTICE AND APPLICATIONS, 1998, : 1001 - 1008
  • [46] Freeform Surface Profile Error Evaluation Based on Gray Code Genetic Algorithm and Segmentation of Spherical Approximation Method
    Sui Xiulin
    Guan Yang
    Zhang Shiguang
    Chen Bin
    PROCEEDINGS 2015 SIXTH INTERNATIONAL CONFERENCE ON INTELLIGENT SYSTEMS DESIGN AND ENGINEERING APPLICATIONS ISDEA 2015, 2015, : 410 - 413
  • [47] Dynamic SLAM algorithm based on adaptive keyframe extraction under large curvature motion
    Chen, Mengyuan
    Xu, Tao
    Zhang, Tantan
    Zhongguo Guanxing Jishu Xuebao/Journal of Chinese Inertial Technology, 2024, 32 (07): : 671 - 680
  • [48] Vertical Profile Diving and Floating Motion Control of the Underwater Glider Based on Fuzzy Adaptive LADRC Algorithm
    Wang, Zhiguang
    Yu, Caoyang
    Li, Mingjie
    Yao, Baoheng
    Lian, Lian
    JOURNAL OF MARINE SCIENCE AND ENGINEERING, 2021, 9 (07)
  • [49] OPTIMAL COMPONENT SELECTION OF COTS BASED SOFTWARE SYSTEM UNDER CONSENSUS RECOVERY BLOCK SCHEME INCORPORATING EXECUTION TIME
    Jha, P. C.
    Kapur, P. K.
    Bali, Shivani
    Kumar, U. Dinesh
    INTERNATIONAL JOURNAL OF RELIABILITY QUALITY & SAFETY ENGINEERING, 2010, 17 (03): : 209 - 222
  • [50] Development and Validation of the Source Code for defining the optimal path of a mobile robot using Genetic Algorithm based TSP
    Guha, Suman Kumar
    Dutta, Suman
    Saha, Sushmita
    Samanta, Arpita
    2017 4TH INTERNATIONAL CONFERENCE ON OPTO-ELECTRONICS AND APPLIED OPTICS (OPTRONIX), 2017,