Zhao, Jiayu ORCID: 0000-0002-7995-8451
(2025)
Enhancing Bayesian Optimization for Compiler Auto-tuning.
PhD thesis, University of Leeds.
Abstract
Modern compilers offer a wide range of passes for code optimisation. Selecting the right combination and order of these passes, known as phase ordering, can improve the performance of compiled binaries. Autotuning, which refers to automatically searching the space of possible pass combinations, is a powerful technique for compiler phase ordering. However, its practical adoption remains challenging due to the vast search space of compiler optimisations and the high cost of evaluating candidate configurations.
This thesis enhances compiler autotuning by leveraging Bayesian optimisation (BO) to efficiently explore the complex space of compiler phase ordering. BO builds an online surrogate model to approximate the objective function to reduce evaluation overhead. It uses an acquisition function (AF) to guide sampling, improving search efficiency. While promising, applying BO to compiler autotuning requires addressing multiple open challenges.
First, standard BO struggles with high-dimensional search spaces like compiler phase ordering. To address this, this thesis introduces a simple yet effective AF initialisation strategy to enhance BO's ability to navigate high-dimensional optimisation spaces.
Second, the complex interactions between compiler passes make it difficult to model the relationship between pass sequences and performance to build an effective surrogate model. To tackle this, a new compiler autotuning strategy is proposed to incorporate compilation statistics to model these interactions. This method improves BO's search efficiency, requiring only one-third of the search budget compared to previous approaches while delivering higher-performance binaries.
Finally, a real-world program often contains multiple source files and complex compilation workflows. Applying compiler autotuning to such settings requires efficiently allocating the search budget across the compilation targets. To address this, this thesis presents an adaptive BO scheme that dynamically allocates search budgets across source files and develops a framework to automate compiler autotuning setup.
Together, these contributions improve the efficiency, scalability, and usability of BO-based compiler autotuning, making it a more practical tool for autotuning compiler phase ordering.
Metadata
Supervisors: | Wang, Zheng and Djemame, Karim |
---|---|
Related URLs: | |
Keywords: | compiler, Bayesian optimization, autotuning |
Awarding institution: | University of Leeds |
Academic Units: | The University of Leeds > Faculty of Engineering (Leeds) > School of Computing (Leeds) |
Date Deposited: | 01 Oct 2025 08:53 |
Last Modified: | 01 Oct 2025 08:53 |
Open Archives Initiative ID (OAI ID): | oai:etheses.whiterose.ac.uk:37349 |
Download
Final eThesis - complete (pdf)
Filename: Zhao_J_Computer_PhD_2025.pdf
Licence:
This work is licensed under a Creative Commons Attribution NonCommercial ShareAlike 4.0 International License
Export
Statistics
You do not need to contact us to get a copy of this thesis. Please use the 'Download' link(s) above to get a copy.
You can contact us about this thesis. If you need to make a general enquiry, please see the Contact us page.