Compiler optimization techniques are inherently complex, and rigorous testing of compiler optimization implementation is critical. Recent years have witnessed the emergence of testing approaches for uncovering incorrect optimization bugs, but these approaches rely heavily on the differential testing mechanism, which requires comparing outputs across multiple compilers. This dependency gives rise to important limitations, including that (1) the tested functionality must be consistently implemented across all compilers and (2) shared bugs remain undetected. Thus, false alarms can be produced and significant manual efforts will be required. To overcome the limitations, we propose a metamorphic testing approach inspired by compiler optimizations. The approach is driven by how to maximize compiler optimization opportunities while effectively judging optimization correctness. Specifically, our approach first employs tailored code construction strategies to generate input programs that satisfy optimization conditions, and then applies various compiler optimization transformations to create semantically equivalent test programs. By comparing the outputs of pre- and post-transformation programs, this approach effectively identifies incorrect optimization bugs. We conducted a preliminary evaluation of this approach on GCC and LLVM, and we have successfully detected five incorrect optimization bugs at the time of writing. This result demonstrates the effectiveness and potential of our approach.
Synergy-Guided Compiler Auto-Tuning of Nested LLVM Pass Pipelines
Hangzhou Institute for Advanced Study at UCAS(中国科学院大学杭州高等研究院);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学)
QTUNER: A Feature-Guided Adaptive Framework for Quantum-Compiler Optimization Pass Tuning
The Chinese University of Hong Kong(香港中文大学);Nebius;State Key Laboratory of Quantum Information Technologies and Materials (CUHK)(量子信息科技与材料国家重点实验室(香港中文大学))
A Hybrid, Knowledge-Guided Evolutionary Framework for Personalized Compiler Auto-Tuning
Hangzhou Institute for Advanced Study at UCAS(中国科学院大学杭州高等研究院);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学)
Pattern-Guided Graph Synthesis for Suppressing Known Defects in DL Compiler Fuzzing
School of Computer Science and Engineering, Nanjing University of Science and Technology(南京理工大学计算机科学与工程学院);Department of Computer Science, Xidian University(西安电子科技大学计算机科学与技术学院);School of Computer Science, Wuhan University(武汉大学计算机学院)
CLIR: Liveness-Driven and Structure-Aware Fuzzing for the Cranelift Compiler
Beijing University of Posts and Telecommunications(北京邮电大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Peking University(北京大学);The Hong Kong Polytechnic University(香港理工大学);Huazhong University of Science and Technology(华中科技大学)
GRACE: Cluster-Specific Sequence Reuse for Compiler Auto-Tuning
Hangzhou Institute for Advanced Study at UCAS(中国科学院大学杭州高等研究院);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Research Center for High Efficiency Computing Infrastructure, Zhejiang Lab(浙江实验室高性能计算基础设施研究中心)
Testing and Verification of Quantum Compilers through Assurance Contracts and Evidence
City University of Science and Information Technology (CUSIT)(城市科学与技术大学);National University of Computer and Emerging Sciences (FAST-NUCES)(国立计算机与新兴科学大学)
Improving Code Translation with Syntax-Guided and Semantic-aware Preference Optimization
State Key Laboratory for Novel Software Technology, Nanjing University, China(南京大学新型软件技术国家重点实验室);National Institute of Healthcare Data Science, Nanjing University, China(南京大学健康数据科学国家研究院)