计算机科学 > 程序设计语言
[提交于 2026年8月20日]
标题:Formal Performance and Compile Time Guarantees for Compiler Optimization Heuristics
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Nikil Shyamsunder[v1] 2026年8月20日 星期四 15:02:11 UTC