Efficient compiler optimization by modeling passes dependence
Abstract Selecting the optimal combination of compiler passes is a significant challenge to enhance performance and reduce the code size of compiled binaries. While a well-selected sequence of compiler passes can yield considerable benefits, the large number of potential combinations and the scarcity of effective ones make this task prohibitively complex. To tackle this problem, we propose a novel approach to group compiler passes into a small set of sub-sequences. This approach translates the task of identifying the right compiler passes combination into determining the appropriate combination of these sub-sequences. We apply our approach to CBench and PolyBench, demonstrating remarkable performance improvements. Our approach enhances runtime performance by 22% compared to the default LLVM ‘O3’ option, and achieves a code size reduction of 24% compared to the ‘Oz’ option. Our approach also outperforms state-of-the-art across various optimization tasks and hardware platforms.
Authors
- Zheng Wang (ORCID: https://orcid.org/0009-0001-7858-6238)
- Jianfeng Liu (ORCID: https://orcid.org/0009-0000-3074-106X)
- Jianbin Fang (ORCID: https://orcid.org/0000-0003-3542-4869)
- Ting Wang (ORCID: https://orcid.org/0000-0001-5967-5940)
- Chun Huang (ORCID: https://orcid.org/0000-0002-0317-8192)
- Jing Xie (ORCID: https://orcid.org/0000-0001-6113-1336)
Institutions
- National University of Defense Technology (CN)
- Northwest University (CN)
Publication Details
- Journal
- CCF Transactions on High Performance Computing
- Published
- 2024-12-01
- DOI
- https://doi.org/10.1007/s42514-024-00197-9
- Citations
- 3
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 1.47
Funders
- National Natural Science Foundation of China
- National Key Research and Development Program of China