arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.00131cs.AIcs.LGcs.PLcs.SE
收藏

AI-PROPELLER:基于AlphaEvolve的仓库规模过程间代码布局优化

AI-PROPELLER: Warehouse-Scale Interprocedural Code Layout Optimization with AlphaEvolve

University of California, Riverside(加州大学河滨分校);Google(谷歌);DeepMind(深度思维)

Chaitanya Mamatha Ananda, Rajiv Gupta, Mircea Trofin, Aiden Grossman, Sriraman Tallam, Xinliang David Li, Amir Yazdanbakhsh

AI总结:

提出AI-PROPELLER系统,利用Magellan智能工作流将Propeller的编译器启发式方法演化为细粒度过程间优化器,并通过实际硬件执行评估布局变体,首次在工业仓库规模应用中实现细粒度过程间代码布局优化,性能提升0.23%至1.6%。

摘要:

后链接优化器(如Propeller和BOLT)已证明,精确的、基于性能剖析的代码布局可以从高度优化的二进制文件中提取显著的性能提升。然而,这些系统目前局限于过程内技术,未能充分利用过程间布局的全局潜力。由于组合爆炸的搜索空间和复杂的调用返回语义难以建模,过程间代码布局历来困难。因此,细粒度过程间布局的性能潜力在实践中尚未得到证实。AI-PROPELLER使用Magellan(一种智能工作流),将Propeller中的编译器启发式方法演化为细粒度过程间优化器,并微调所得策略的超参数。为确保高保真度,我们摒弃了近似的静态成本模型,智能工作流生成多个布局变体,并在实际硬件上执行以测量真实性能计数器,为进化循环提供精确的奖励信号。AI-PROPELLER已在包括大型仓库规模应用在内的多个基准测试上进行了评估,实验表明,在使用最先进的FDO和PLO优化后,性能提升0.23%至1.6%,这对于实际二进制文件而言意义重大。这是首次在工业环境中对大型仓库规模应用进行细粒度过程间代码布局优化。

英文摘要:

Post-link optimizers (PLOs) such as Propeller and BOLT have demonstrated that precise, profile-guided code layout can extract significant performance gains from heavily optimized binaries. However, these systems are currently restricted to intraprocedural techniques, leaving the global potential of interprocedural layout largely untapped. Interprocedural code layout is historically difficult due to a combinatorially intractable search space and complex call-return semantics that are challenging to model. Consequently, the performance potential of fine-grained interprocedural layout remains unproven in practice. AI-PROPELLER uses Magellan, an agentic workflow that evolves the compiler heuristic in Propeller into a fine-grained interprocedural optimizer and fine-tunes the resulting policy hyperparameters. To ensure high-fidelity, we move away from approximate static cost models and the agentic workflow generates multiple layout variants that are executed on actual hardware to measure real performance counters, providing a precise reward signal for the evolutionary loop. AI-PROPELLER has been evaluated on several benchmarks including large warehouse-scale applications and experiments show performance improvements of 0.23% to 1.6% optimized with state-of-the-art FDO and PLO which is significant for real-world binaries. This is the first time ever that large warehouse-scale applications in industrial settings have been optimized with fine-grained interprocedural code layout.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑