arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1912.11281cs.PL
收藏

积极聚合:一种新的程序优化范式

Aggressive Aggregation: a New Paradigm for Program Optimization

Frederik Gossen, Marc Jasper, Alnis Murtovi, Bernhard Steffen

摘要:

在本文中,我们提出了一个新的范例,程序优化,这是基于积极的聚合,即,基于部分评估的非循环程序片段分解成一对计算最优结构:代数决策图(ADD)捕获条件分支和并行分配,引用表达式DAG(ED)实现无冗余计算。事实上,这种分解成无副作用组件结构的点允许强大的优化,这些优化在语义上包括传统上由SSA形式转换、代码专门化、公共子表达式消除和(部分)冗余消除所针对的效果。我们说明了我们的方法沿着著名的迭代斐波那契程序,这通常被认为是缺乏任何优化潜力的优化。这里的重点是,我们的技术支持循环展开作为一个一流的优化技术,并适合于最佳聚合大的程序片段,特别是那些从多个循环展开。对于Fibonacci程序,这导致性能提高超过一个数量级。

英文摘要:

In this paper, we propose a new paradigm for program optimization which is based on aggressive aggregation, i.e., on a partial evaluation-based decomposition of acyclic program fragments into a pair of computationally optimal structures: an Algebraic Decision Diagram (ADD) to capture conditional branching and a parallel assignment that refers to an Expression DAG (ED) which realizes redundancy-free computation. The point of this decomposition into, in fact, side-effect-free component structures allows for powerful optimization that semantically comprise effects traditionally aimed at by SSA form transformation, code specialization, common subexpression elimination, and (partial) redundancy elimination. We illustrate our approach along an optimization of the well-known iterative Fibonacci program, which, typically, is considered to lack any optimization potential. The point here is that our technique supports loop unrolling as a first class optimization technique and is tailored to optimally aggregate large program fragments, especially those resulting from multiple loop unrollings. For the Fibonacci program, this results in a performance improvement beyond an order of magnitude.

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

↑