REVIEW 3 cited by
MLGO: a Machine Learning Guided Compiler Optimizations Framework
Not yet reviewed by Pith; the record is open.
This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.
SPECIMEN: schema-true, not a live event
T0 review · schema-true
One-sentence machine reading of the paper's core claim.
pith:XXXXXXXX · record.json · timestamp
read the original abstract
Leveraging machine-learning (ML) techniques for compiler optimizations has been widely studied and explored in academia. However, the adoption of ML in general-purpose, industry strength compilers has yet to happen. We propose MLGO, a framework for integrating ML techniques systematically in an industrial compiler -- LLVM. As a case study, we present the details and results of replacing the heuristics-based inlining-for-size optimization in LLVM with machine learned models. To the best of our knowledge, this work is the first full integration of ML in a complex compiler pass in a real-world setting. It is available in the main LLVM repository. We use two different ML algorithms: Policy Gradient and Evolution Strategies, to train the inlining-for-size model, and achieve up to 7\% size reduction, when compared to state of the art LLVM -Oz. The same model, trained on one corpus, generalizes well to a diversity of real-world targets, as well as to the same set of targets after months of active development. This property of the trained models is beneficial to deploy ML techniques in real-world settings.
Forward citations
Cited by 3 Pith papers
-
Can Large Language Models Recover Semantic Optimization Opportunities That Compilers Miss?
On the new SeGaBench benchmark, the strongest of five LLMs recovered compiler-missed optimization semantics and produced validated, speedup-delivering code changes in a large majority of cases.
-
WarmTuner: Program-Specific Warm Starts for Compiler Autotuning via Offline-to-Online Reinforcement Learning
WarmTuner learns a source-code-conditioned flag policy offline and refines it online with GRPO, reporting 1.732x average speedup over GCC -O3 but not a significant gain over GroupTuner.
-
Agentic Harness for Real-World Compilers
An LLVM-specific harness and agent raise LLM bug-fix pass rates by about 22 percent over a general agent, but expert review shows true capability stays below 22 percent because LLVM's regression tests accept many inco...
Discussion (0). Continue with ORCID to comment.