English

AI Coding Agents Need Better Compiler Remarks

Programming Languages 2026-04-16 v1

Abstract

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.

Keywords

Cite

@article{arxiv.2604.13927,
  title  = {AI Coding Agents Need Better Compiler Remarks},
  author = {Akash Deo and Simone Campanoni and Tommy McMichen},
  journal= {arXiv preprint arXiv:2604.13927},
  year   = {2026}
}

Comments

3 pages, 1 figure, 2 tables, Presented at Workshop on Co-Design for Agentic and Multimodal AI (CoDAIM) 2026

R2 v1 2026-07-01T12:10:51.316Z