Beyond Pass-by-Pass Optimization: Intent-Driven IR Optimization with Large Language Models
Lei Qiu, Zi Yang, Fang Lyu, Ming Zhong, Huimin Cui, Xiaobing Feng

TL;DR
IntOpt introduces an intent-driven IR optimization framework that explicitly captures high-level optimization goals, enabling globally coordinated transformations, resulting in significant performance improvements over existing LLM-based and traditional compiler optimizations.
Contribution
This work presents the first explicit intent-driven IR optimizer, separating high-level strategy from low-level transformations to improve correctness and performance.
Findings
Achieves 90.5% verified correctness
Attains 2.660x average speedup on 200 programs
Surpasses modern compiler -O3 on 37 benchmarks with up to 272.60x speedup
Abstract
Modern compilers optimize programs through a sequence of modular passes over intermediate representations (IR). While this pass-by-pass paradigm offers engineering benefits, it suffers from a pass coordination problem: locally beneficial transformations may block more profitable optimizations in later stages. This limitation stems from the lack of an explicit notion of optimization intent, defined as a holistic strategy for coordinating multiple transformations toward a global performance objective. Recent LLM-based approaches formulate IR optimization as an end-to-end generation task, thereby avoiding the traditional pass-by-pass structure. However, optimization intent remains implicit in these methods, forcing models to jointly infer optimization strategy and generate low-level transformations, which limits both correctness and performance. We propose IntOpt, the first intent-driven…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Logic, programming, and type systems · Embedded Systems Design Techniques
