AI Coding Agents Need Better Compiler Remarks

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Deo, Akash, Campanoni, Simone, McMichen, Tommy
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910131645579264
author Deo, Akash
Campanoni, Simone
McMichen, Tommy
author_facet Deo, Akash
Campanoni, Simone
McMichen, Tommy
contents Modern AI agents optimize programs by refactoring source code to trigger trusted compiler transformations. This preserves program semantics and reduces source code pollution, making the program easier to maintain and portable across architectures. However, this collaborative workflow is limited by legacy compiler interfaces, which obscure analysis behind unstructured, lossy optimization remarks that have been designed for human intuition rather than machine logic. Using the TSVC benchmark, we evaluate the efficacy of existing optimization feedback. We find that while precise remarks provide actionable feedback (3.3x success rate), ambiguous remarks are actively detrimental, triggering semantic-breaking hallucinations. By replacing ambiguous remarks with precise ones, we show that structured, precise analysis information unlocks the capabilities of small models, proving that the bottleneck is the interface, not the agent. We conclude that future compilers must expose structured, actionable feedback designed specifically for the future of autonomous performance engineering.
format Preprint
id arxiv_https___arxiv_org_abs_2604_13927
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle AI Coding Agents Need Better Compiler Remarks
Deo, Akash
Campanoni, Simone
McMichen, Tommy
Programming Languages
D.3.4; I.2.2
Modern AI agents optimize programs by refactoring source code to trigger trusted compiler transformations. This preserves program semantics and reduces source code pollution, making the program easier to maintain and portable across architectures. However, this collaborative workflow is limited by legacy compiler interfaces, which obscure analysis behind unstructured, lossy optimization remarks that have been designed for human intuition rather than machine logic. Using the TSVC benchmark, we evaluate the efficacy of existing optimization feedback. We find that while precise remarks provide actionable feedback (3.3x success rate), ambiguous remarks are actively detrimental, triggering semantic-breaking hallucinations. By replacing ambiguous remarks with precise ones, we show that structured, precise analysis information unlocks the capabilities of small models, proving that the bottleneck is the interface, not the agent. We conclude that future compilers must expose structured, actionable feedback designed specifically for the future of autonomous performance engineering.
title AI Coding Agents Need Better Compiler Remarks
topic Programming Languages
D.3.4; I.2.2
url https://arxiv.org/abs/2604.13927