PredComp: Predicting Compiler Optimization Options with Multi-stage Learning
Standard compiler optimization levels, such as -O3 , which provides a fixed optimization strategy for all programs, often fail to deliver the optimal performance. Compiler auto-tuning techniques can deliver substantial speedups, but existing methods present a difficult trade-off. While dynamic iterative approaches are effective, their requirement for repeated compilation and execution incurs high overhead, which limits their practicality. Conversely, static prediction methods offer a low-overhead alternative. However, they face a vast search space and must comprehensively learn both option-option interactions and option-program feature relationships. To overcome the challenge, we propose PredComp , a novel static framework that leverages the divide and conquer paradigm to predict desired option sets. PredComp decomposes the search space by partitioning options into distinct subspaces based on their relationships, making the prediction problem tractable. It first predicts promising option sub-sets within each subspace, focusing only on intra-subspace option interactions and their preferred program features. Then, it adopts a combination model that aggregates these top-ranked sub-sets, prioritizes inter-subspace option interactions and corresponding features to construct globally desired sets. Experiments on three widely used benchmark suites and one real-world application show that PredComp achieves average speedups of 1.1011× over -O3 with a single prediction. Notably, it achieves performance comparable to dynamic iterative methods while reducing tuning time from hours or days to seconds, thereby making static prediction a practical solution for large-scale and frequently evolving software.
Authors
- Yao Guo (ORCID: https://orcid.org/0000-0001-5064-5286)
- Ding Li (ORCID: https://orcid.org/0000-0001-7558-9137)
- Zi Wang (ORCID: https://orcid.org/0000-0002-3953-0493)
- Xiangqun Chen (ORCID: https://orcid.org/0000-0002-7366-5906)
- B. Gao (ORCID: https://orcid.org/0009-0005-3491-1384)
- Mengyu Yao (ORCID: https://orcid.org/0009-0005-8220-3470)
- Zhihong Xue
Institutions
- Peking University (CN)
- ZTE (United States) (US)
Publication Details
- Journal
- ACM Transactions on Architecture and Code Optimization
- Published
- 2026-06-09
- DOI
- https://doi.org/10.1145/3820771
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00