Optgen: A Generator for Local Optimizations
Optgen: A Generator for Local Optimizations
复制标题
Optgen:局部优化生成器
DOI:
--
复制
发表时间:
2015
期刊:
影响因子:
--
通讯作者:
Sebastian Buchwald
中科院分区:
文献类型:
--
作者:
Sebastian Buchwald
Every compiler comes with a set of local optimization rules, such as x + 0 → x and x & x → x, that do not require any global analysis. These rules reflect the wisdom of the compiler developers about mathematical identities that hold for the operations of their intermediate representation. Unfortunately, these sets of hand-crafted rules guarantee neither correctness nor completeness. Optgen solves this problem by generating all local optimizations up to a given cost limit. Since Optgen verifies each rule using an SMT solver, it guarantees correctness and completeness of the generated rule set. Using Optgen, we tested the latest versions of gcc, icc and llvm and identified more than 50 missing local optimizations that involve only two operations.