Detection of Optimizations Missed by the Compiler

被引:0
|
作者
Zhang, Yi [1 ]
机构
[1] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Peoples R China
来源
PROCEEDINGS OF THE 31ST ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2023 | 2023年
基金
中国国家自然科学基金;
关键词
Compiler; Missed optimizations; Testing;
D O I
10.1145/3611643.3617846
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
With the increasing significance of compilers in software development, identifying optimization bugs and enhancing their performance has become a significant challenge. In recent years, many studies have targeted only specific analyses to identify missed optimizations (e.g., in data flow analyses). While there have been some general approaches, most rely on differential testing between different compilers, which makes it difficult to identify optimization bugs that are common to multiple compilers. This paper tackles these challenges by introducing an effective and general approach called MOD. MOD works by using a manually-curated mapping between optimizations, ensuring that code should be consistently optimized: if one optimization triggers but the other does not, that indicates a bug in either of the two optimizations. We implemented MOD as a tool to detect missed optimizations in the available expressions of the LLVM. Experimental results show that MOD can report 20 correct alerts in one hour of detection of random test programs.
引用
收藏
页码:2192 / 2194
页数:3
相关论文
共 50 条
  • [1] Translation Validation of Information Leakage of Compiler Optimizations
    Panigrahi, Priyanka
    Karfa, Chandan
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2023, 42 (11) : 3585 - 3598
  • [2] Finding Missed Optimizations through the Lens of Dead Code Elimination
    Theodoridis, Theodoros
    Rigger, Manuel
    Su, Zhendong
    ASPLOS '22: PROCEEDINGS OF THE 27TH ACM INTERNATIONAL CONFERENCE ON ARCHITECTURAL SUPPORT FOR PROGRAMMING LANGUAGES AND OPERATING SYSTEMS, 2022, : 697 - 709
  • [3] Clever DAE: Compiler Optimizations for Digital Twins at Scale
    Scuttari, Michele
    Camillucci, Nicola
    Cattaneo, Daniele
    Agosta, Giovanni
    Casella, Francesco
    Cherubin, Stefano
    Terraneo, Federico
    PROCEEDINGS OF THE 20TH ACM INTERNATIONAL CONFERENCE ON COMPUTING FRONTIERS 2023, CF 2023, 2023, : 344 - 350
  • [4] A Design Space Exploration of Compiler Optimizations Guided by Hot Functions
    Siraichi, Marcos Yukio
    Tonetti, Caio
    da Silva, Anderson Faustino
    PROCEEDINGS OF THE 2016 35TH INTERNATIONAL CONFERENCE OF THE CHILEAN COMPUTER SCIENCE SOCIETY (SCCC), 2016,
  • [5] ApproxHPVM: A Portable Compiler IR for Accuracy-Aware Optimizations
    Sharif, Hashim
    Srivastava, Prakalp
    Huzaifa, Muhammad
    Kotsifakou, Maria
    Joshi, Keyur
    Sarita, Yasmin
    Zhao, Nathan
    Adve, Vikram S.
    Misailovic, Sasa
    Adve, Sarita
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (OOPSLA):
  • [6] Benchmarking domain-specific compiler optimizations for variational forms
    Kirby, Robert C.
    Logg, Anders
    ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 2008, 35 (02): : 1 - 18
  • [7] Pinhao: An Auto-tunning System for Compiler Optimizations Guided by Hot Functions
    Siraichi, Marcos Yukio
    Segawa Tonetti, Caio Henrique
    da Silva, Anderson Faustino
    JOURNAL OF UNIVERSAL COMPUTER SCIENCE, 2019, 25 (01) : 42 - 72
  • [8] DNNVM: End-to-End Compiler Leveraging Heterogeneous Optimizations on FPGA-Based CNN Accelerators
    Xing, Yu
    Liang, Shuang
    Sui, Lingzhi
    Jia, Xijie
    Qiu, Jiantao
    Liu, Xin
    Wang, Yushun
    Shan, Yi
    Wang, Yu
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2020, 39 (10) : 2668 - 2681
  • [9] A compiler-compiler for Codesign
    Carchiolo, V
    Malgeri, M
    Mangioni, G
    INTERNATIONAL CONFERENCE ON POLITICS AND INFORMATION SYSTEMS: TECHNOLOGIES AND APPLICATIONS, PROCEEDINGS, 2003, : 174 - 177
  • [10] ACEDR: Automatic Compiler Error Detection and Recovery for COTS CPU and Caches
    Nezzari, Y.
    Bridges, C. P.
    IEEE TRANSACTIONS ON RELIABILITY, 2019, 68 (03) : 859 - 871