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 条
  • [21] Ions motion optimization algorithm based on diversity optimal guidance and opposition-based learning
    Wang C.
    Wang B.-Z.
    Cen Y.-W.
    Xie N.-G.
    Kongzhi yu Juece/Control and Decision, 2020, 35 (07): : 1584 - 1596
  • [22] A motion blur QR code identification algorithm based on feature extracting and improved adaptive thresholding
    Li, Junnian
    Zhang, Dong
    Zhou, MengChu
    Cao, Zhengcai
    NEUROCOMPUTING, 2022, 493 : 351 - 361
  • [23] Assessing optimal assignment under uncertainty: An interval-based algorithm
    Liu, Lantao
    Shell, Dylan A.
    INTERNATIONAL JOURNAL OF ROBOTICS RESEARCH, 2011, 30 (07): : 936 - 953
  • [24] OPTIMAL MOTION PLANNING FOR A MULTI-UUV SYSTEM WITH A FOUR NEURON-BASED NN AND KM ALGORITHM UNDER OCEAN CURRENTS
    Zhu, Danjie
    Pan, Ya-Jun
    Yang, Simon X.
    INTERNATIONAL JOURNAL OF ROBOTICS & AUTOMATION, 2025, 40 (02): : 104 - 114
  • [25] The minimum zone evaluation for elliptical profile error based on the geometry optimal approximation algorithm
    Lei Xianqing
    Gao Zuobin
    Cui Jingwei
    Wang Haiyang
    Wang Shifeng
    MEASUREMENT, 2015, 75 : 284 - 288
  • [26] Estimation method for ballistic target range profile length based on the optimal route algorithm
    Huang, Jing
    Ning, Chao
    Zhu, Yong
    Xi Tong Gong Cheng Yu Dian Zi Ji Shu/Systems Engineering and Electronics, 2015, 37 (07): : 1499 - 1503
  • [27] A genetic optimal algorithm for plane line profile evaluation based on auto-spotting
    Wang, BP
    Jing, DY
    PROGRESS OF MACHINING TECHNOLOGY, 2004, : 938 - 942
  • [28] Optimal Tuning of Servo Motor Based Linear Motion System Using Optimization Algorithm
    Ramesh, H.
    Xavier, S. Arockia Edwin
    JOURNAL OF ELECTRICAL ENGINEERING & TECHNOLOGY, 2022, 17 (06) : 3565 - 3580
  • [29] TIME-OPTIMAL MOTION PLANNING FOR ROBOT MANIPULATORS BASED ON ELITIST GENETIC ALGORITHM
    Liu, Yi
    Cong, Ming
    Dong, Hang
    Liu, Dong
    Du, Yu
    INTERNATIONAL JOURNAL OF ROBOTICS & AUTOMATION, 2017, 32 (04): : 396 - 405
  • [30] Optimal Tuning of Servo Motor Based Linear Motion System Using Optimization Algorithm
    H. Ramesh
    S. Arockia Edwin Xavier
    Journal of Electrical Engineering & Technology, 2022, 17 : 3565 - 3580