We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Artificial Intelligence & Machine Learning/Automatic Compiler Tuning for Inlining with Machine Learning
PeriodicalsArtificial Intelligence & Machine Learning

Automatic Compiler Tuning for Inlining with Machine Learning

Checking your access to this record.

Abstract & Overview

Automatic compiler tuning has become one of the hot research areas attracting extensive attention in recent years. By using machine learning models to learn from large-scale experimental samples, it can efficiently search through the massive combinations of compiler optimization parameters within limited time, identifying parameter sets that better suit the current microprocessor architecture and application programs, thereby achieving higher execution efficiency of target programs than default compilation options. This paper designs and implements an automatic compiler tuning mechanism, employing an XGBoost performance model built through a “learn-while-searching” approach to guide the search process of simulated annealing algorithm (SA). The XGBoost model can predict the performance deltas of different GCC optimization parameters, and these deltas are used to bias the annealing acceptance probability. This mechanism combines the global modeling capability of machine learning with the local search advantages of the SA, enhancing both search efficiency and effectiveness. Based on this tuning mechanism, the paper conducts in-depth research on the inlining optimization process inside the GCC compiler, proposing and implementing two automatic tuning schemes: (1) automatic tuning of inlining compilation options, which influences the number of inlined functions through different values of these options, thereby affecting program performance; (2) automatic tuning of function inlining at call sites, which uses GCC plugins technology to replace the ipa-inline pass in GCC optimization, enabling control over whether to inline functions at each call site and thus impacting program performance. Extensive experiments are conducted on benchmark suites such as SPEC CPU2006, cBench, and WRF. The results show that compared with the Critical Flag Selection-based Compiler Auto-tuning (CFSCA) method published in ASE2023, the Bayesian Optimization-based Compiler Auto-tuning (BOCA) method published in ICSE2021, and other traditional search algorithms, the proposed tuning mechanism achieves better optimization effects on most benchmarks.

Cite this record

Da Huang, Xiaohua Shi, Yuchen Feng, Changhai Zhao, Jiamin Wen, Minqiang Shang (2025). Automatic Compiler Tuning for Inlining with Machine Learning. International Journal of Pattern Recognition and Artificial Intelligence, 39(11), 2552016. https://doi.org/10.1142/s0218001425520160

Copy in another style

Huang, D., Shi, X., Feng, Y., Zhao, C., Wen, J., & Shang, M. (2025). Automatic Compiler Tuning for Inlining with Machine Learning. International Journal of Pattern Recognition and Artificial Intelligence, 39(11), 2552016. https://doi.org/10.1142/s0218001425520160
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.