Paper: Finding Missed Code Size Optimizations in Compilers using LLMs

John R Levine <johnl@taugh.com>
Fri, 03 Jan 2025 12:23:10 -0500

          From comp.compilers

Related articles
Paper: Finding Missed Code Size Optimizations in Compilers using LLMs johnl@taugh.com (John R Levine) (2025-01-03)
| List of all articles for this month |
From: John R Levine <johnl@taugh.com>
Newsgroups: comp.compilers
Date: Fri, 03 Jan 2025 12:23:10 -0500
Organization: Compilers Central
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="11973"; mail-complaints-to="abuse@iecc.com"
Keywords: paper, optimize, errors
Posted-Date: 03 Jan 2025 12:26:12 EST

Two people from Meta/Facebook took some trivial programs, used LLMs to
add code that should be optimized away, and looked for compiler
crashes or suspicious increases in object code size. They found a
bunch of optimization bugs.


Previous code mutators have been large and complex, but this one using an
LLM is 150 lines of code.


https://arxiv.org/abs/2501.00655


Regards,
John Levine, johnl@taugh.com, Taughannock Networks, Trumansburg NY
Please consider the environment before reading this e-mail. https://jl.ly


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.