Minotaur:面向 SIMD 的合成式超优化器
Minotaur: A SIMD-Oriented Synthesizing Superoptimizer
AI总结:
Minotaur 是一个面向 LLVM 的 SIMD 超优化器,通过程序合成搜索并改进整数和浮点 SIMD 代码生成,在 GMP 和 SPEC CPU 2017 上分别取得 7.3% 和 1.5% 的平均加速,且所有优化均经形式化验证。
摘要:
超优化编译器——即在优化过程中对程序空间进行有意义搜索的编译器——能够发现即使是最优秀的现有优化编译器也会错过的优化机会。我们创建了 Minotaur:一个面向 LLVM 的超优化器,它利用程序合成来改进其代码生成,重点关注整数和浮点 SIMD 代码。在 Intel Cascade Lake 处理器上,Minotaur 在 GNU 多精度库(GMP)的基准测试套件上实现了 7.3% 的平均加速,最大加速为 13%。在 SPEC CPU 2017 上,我们的超优化器实现了 1.5% 的平均加速,其中 638.imagick 的最大加速为 4.5%。Minotaur 产生的每一项优化都经过了形式化验证,并且由于我们的工作,它所发现的若干优化已被实现在 LLVM 中。
英文摘要:
A superoptimizing compiler--one that performs a meaningful search of the program space as part of the optimization process--can find optimization opportunities that are missed by even the best existing optimizing compilers. We created Minotaur: a superoptimizer for LLVM that uses program synthesis to improve its code generation, focusing on integer and floating-point SIMD code. On an Intel Cascade Lake processor, Minotaur achieves an average speedup of 7.3\% on the GNU Multiple Precision library (GMP)'s benchmark suite, with a maximum speedup of 13\%. On SPEC CPU 2017, our superoptimizer produces an average speedup of 1.5\%, with a maximum speedup of 4.5\% for 638.imagick. Every optimization produced by Minotaur has been formally verified, and several optimizations that it has discovered have been implemented in LLVM as a result of our work.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。