Formal Performance and Compile Time Guarantees for Compiler Optimization Heuristics

📅 2026-08-20
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
本文针对编译器优化启发式算法导致的性能差和编译时间不可预测问题,提出验证编译阶段的性能与编译时间属性的方法,并以内联扩展为例进行了证明。
📝 Abstract
Modern optimizing compilers rely on heuristic search algorithms for NP-hard optimization problems, which can result in poor generated-code performance and long or unpredictable compile times. These are considered bugs by users, but verified compilers rarely reason beyond semantic preservation. We propose verifying performance and compile time properties of compiler passes. As a proof-of-concept, we formulate inline expansion using a cost model estimating instruction-cache performance. We mechanize this in Rocq, prove semantic preservation of the inlining transformation, and verify the algorithm's monotone improvement, convergence-time bound, and performance bounds for intermediate and final solutions.
Problem

Research questions and friction points this paper is trying to address.

compiler optimization
heuristic search
NP-hard problems
generated-code performance
compile time
Innovation

Methods, ideas, or system contributions that make the work stand out.

compiler optimization
performance guarantees
compile time guarantees
formal verification
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
N
Nikil V. Shyamsunder
Department of Computer Science, Cornell University