Nesting of reducible and irreducible loops

Author:

Havlak Paul1

Affiliation:

1. Rice University

Abstract

Recognizing and transforming loops are essential steps in any attempt to improve the running time of a program. Aggressive restructuring techniques have been developed for single-entry (reducible) loops, but restructurers and the dataflow and dependence analysis they rely on often give up in the presence of multientry (irreducible) loops. Thus one irreducible loop can prevent the improvement of all loops in a procedure. This article give an algorithm to build a loop nesting tree for a procedure with arbitrary control flow. The algorithm uses definitions of reducible and irreducible loops which allow either kind of loop to be nested in the other. The tree construction algorithm, an extension of Tarjan's algorithm for testing reducibility, runs in almost linear time. In the presence of irreducible loops, the loop nesting tree can depend on the depth-first spanning tree used to build it. In particular, the header node representing a reducible loop in one version of the loop nesting tree can be the representative of an irreducible loop in another. We give a normalization method that maximizes the set of reducible loops discovered, independent of the depth-first spanning tree used. The normalization require the insertion of at most one node and one edge per reducible loop.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference6 articles.

1. AHO A. V. SETHI R. I. AND ULLMAN J. m. 1986. Compilers: Principles Techniques and Tools 2rid ed. Addison-Wesley Reading Mass. AHO A. V. SETHI R. I. AND ULLMAN J. m. 1986. Compilers: Principles Techniques and Tools 2rid ed. Addison-Wesley Reading Mass.

2. An interval-based approach to exhaustive and incremental interprocedural data-flow analysis

3. A fast algorithm for finding dominators in a flowgraph

4. SCHWARTZ J. AND SHARIR M. 1979. A design for optimizations of the bitvectoring class. Tech. rep. Courant Inst. New York Univ. New York. September. SCHWARTZ J. AND SHARIR M. 1979. A design for optimizations of the bitvectoring class. Tech. rep. Courant Inst. New York Univ. New York. September.

5. Testing flow graph reducibility;TARJAN R. E.;J. Comput. Syst. Sc{.,1974

Cited by 71 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. AugPersist: Automatically augmenting the persistence of coverage-based greybox fuzzing for persistent software;Computers & Security;2025-01

2. Misconceptions about Loops in C;Proceedings of the 13th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis;2024-06-20

3. Reducing the Overhead of Exact Profiling by Reusing Affine Variables;Proceedings of the 33rd ACM SIGPLAN International Conference on Compiler Construction;2024-02-17

4. Bringing Compiling Databases to RISC Architectures;Proceedings of the VLDB Endowment;2023-02

5. Understanding and Decomposing Control-Flow Loops in Business Process Models;Lecture Notes in Computer Science;2022

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3