IR-OptSet: An Optimization-Sensitive Dataset for Advancing LLM-Based IR Optimizer

Ziyang Yang, Lei Qiu, Fang Lyu, Ming Zhong, Zhi-Lei Chai +3 more
1/1/2025
benchmark-dataset

No confident code implementation found for this paper.

Abstract

Compiler optimization is essential for improving program performance, yet modern compilers still depend on manually crafted transformation rules over intermediate representations (IRs). As compilers grow in complexity, maintaining these rule-based optimizations becomes increasingly labor-intensive and difficult to scale.

Show full abstract

Recent advances in large language models (LLMs) offer a promising alternative, but their effectiveness in compiler optimization remains limited – primarily due to the lack of IR-oriented datasets that expose models to diverse transformation samples in real-world scenarios ( optimization-sensitive samples ), hindering LLMs from learning rich and generalizable optimization strategies. In this paper, we introduce IR-OptSet, the first public optimization-sensitive dataset for advancing LLM-based IR optimizers. It comprises 170K LLVM IR samples from open-source repositories across 8 representative optimization domains. IR-OptSet defines two core tasks: Code Analysis and Optimized Code Generation, and provides tools for correctness verification, performance evaluation, and dataset expansion. In our experiments, fine-tuning three representative LLMs on IR-OptSet leads to significant accuracy improvements across both tasks. Moreover, the LLM fine-tuned with IR-OptSet outperforms traditional compiler with the -O3 option in 64 test cases in terms of performance. Further analysis reveals that IR-OptSet provides greater transformation diversity and representativeness than three widely used IR-oriented datasets, highlighting its potential to drive model-based IR optimization. IR-OptSet is publicly available at https://huggingface.co/ datasets/YangziResearch/IR-OptSet .

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yang2025iroptset,
  title  = {IR-OptSet: An Optimization-Sensitive Dataset for Advancing LLM-Based IR Optimizer},
  author = {Ziyang Yang and Lei Qiu and Fang Lyu and Ming Zhong and Zhi-Lei Chai and Hao Zhou and Huimin Cui and Xiao-Bing Feng},
  year   = {2025},
  doi    = {10.52202/085713-3784},
  url    = {https://doi.org/10.52202/085713-3784},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/599210061dcb17bde2bcd51c4f4b326484782e5b.svg)](https://codeofpaper.com/paper/599210061dcb17bde2bcd51c4f4b326484782e5b)

Discussion