CompilerGPT: Leveraging Large Language Models for Analyzing and Acting on Compiler Optimization Reports
Peter Pirkelbauer, Chunhua Liao

TL;DR
This paper introduces CompilerGPT, a framework using large language models to interpret compiler optimization reports and automatically modify code, showing potential for enhancing compiler usability and achieving significant speedups.
Contribution
The paper presents a novel framework that automates understanding and acting on compiler reports using LLMs, integrating multiple models and compilers for improved code optimization.
Findings
Achieved up to 6.5x speedup in benchmarks
Demonstrated LLMs can interpret complex compiler reports
Framework works with multiple compilers and models
Abstract
Current compiler optimization reports often present complex, technical information that is difficult for programmers to interpret and act upon effectively. This paper assesses the capability of large language models (LLM) to understand compiler optimization reports and automatically rewrite the code accordingly. To this end, the paper introduces CompilerGPT, a novel framework that automates the interaction between compilers, LLMs, and user defined test and evaluation harness. CompilerGPT's workflow runs several iterations and reports on the obtained results. Experiments with two leading LLM models (GPT-4o and Claude Sonnet), optimization reports from two compilers (Clang and GCC), and five benchmark codes demonstrate the potential of this approach. Speedups of up to 6.5x were obtained, though not consistently in every test. This method holds promise for improving compiler usability…
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 · Machine Learning and Data Classification
