MileStone: A Multi-Objective Compiler Phase Ordering Framework for Graph-based IR-Level Optimization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Sadr, Amirhosein, Nia, Mehran Alidoost
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918518232973312
author Sadr, Amirhosein
Nia, Mehran Alidoost
author_facet Sadr, Amirhosein
Nia, Mehran Alidoost
contents Compiler phase ordering has a strong effect on program performance. Finding an effective sequence of passes is still a difficult task because the search space is large and execution time, code size and energy consumption often conflict. Existing methods usually depend on fixed optimization levels or limited heuristics and they rarely handle multiple objectives at the same time. This paper presents MileStone, a modular framework that models compiler phase ordering as a multi-objective optimization problem. MileStone represents programs as graphs, predicts performance metrics with a graph neural network and explores pass sequences with a reinforcement-learning agent that follows user constraints. The framework also builds a self-evolving database that collects compiler transformations and improves prediction quality. Experiments on standard benchmarks show that MileStone finds strong Pareto-optimal solutions, meets energy limits more accurately than LLVM optimization levels and other related techniques. MileStone reduces execution time by up to 45 percent under the same energy budget using a multi-objective approach. The results show that MileStone provides an effective and scalable solution for multi-objective compiler phase ordering.
format Preprint
id arxiv_https___arxiv_org_abs_2605_23435
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle MileStone: A Multi-Objective Compiler Phase Ordering Framework for Graph-based IR-Level Optimization
Sadr, Amirhosein
Nia, Mehran Alidoost
Programming Languages
Software Engineering
Compiler phase ordering has a strong effect on program performance. Finding an effective sequence of passes is still a difficult task because the search space is large and execution time, code size and energy consumption often conflict. Existing methods usually depend on fixed optimization levels or limited heuristics and they rarely handle multiple objectives at the same time. This paper presents MileStone, a modular framework that models compiler phase ordering as a multi-objective optimization problem. MileStone represents programs as graphs, predicts performance metrics with a graph neural network and explores pass sequences with a reinforcement-learning agent that follows user constraints. The framework also builds a self-evolving database that collects compiler transformations and improves prediction quality. Experiments on standard benchmarks show that MileStone finds strong Pareto-optimal solutions, meets energy limits more accurately than LLVM optimization levels and other related techniques. MileStone reduces execution time by up to 45 percent under the same energy budget using a multi-objective approach. The results show that MileStone provides an effective and scalable solution for multi-objective compiler phase ordering.
title MileStone: A Multi-Objective Compiler Phase Ordering Framework for Graph-based IR-Level Optimization
topic Programming Languages
Software Engineering
url https://arxiv.org/abs/2605.23435