Proactive loop fusion of non-adjacent loops with intervening control flow instructions
Abstract
A system and method for optimization of code with non-adjacent loops. A compiler builds a node tree, which is not a control flow graph, that represents parent-child relationships of nodes of a computer program. Each node represents a control flow statement or a straight-line block of statements of the computer program. If a non-adjacent loop pair of nodes satisfy predetermined conditions, the compiler may perform legal code transformations on the computer program and corresponding node transformations on the node tree. These transformations may make adjacent this pair of loop nodes. The compiler may be configured to perform legal code transformations, such as head and tail duplication, code motion, and if-merging, in order to make adjacent these two loop nodes. Then loop fusion may be performed on this loop pair in order to increase instruction level parallelism (ILP) within an optimized version of the original source code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method for loop fusion of non-adjacent loops, the method comprising: building a node tree that represents parent-child relationships illustrating actual in-program-order execution for each node of a computer program, wherein node types in the tree include types which identify a beginning of at least one of an if-region, a loop region, and a basic block region; initializing a first transformation node to be the starting node; and performing a node transformation on the first transformation node and a second transformation node immediately succeeding in-program-order to th
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (5)
- "Bob Blainey, Christopher Barton, José Nelson Amaral";"Removing Impediments to Loop Fusion Through Code Transformations";"2005";"Spring Berlin Heidelberg";"vol. 2481";"pp. 309-328".
- "Jeanne Ferrante; Karl J. Ottenstein;Joe D. Warren";"The Program Dependence Graph and Its Use in Optimization";"1987";"ACM 0164-0925/87/0700-0319"; "31 pages".
- "Kandemir et al";"An Evaluation of Code and Data Optimizations in the Context of Disk Power Reduction";"Aug. 10, 2005";"6 pages".
- "Kennedy et al";"maximizing loop parallelism and improving data locality via loop fusion and distribution";"Aug. 1993";"20 pages".
- "Megido et al";"Optimal Weighted Loop Fusion for Parallel Programs";"1997";"10 pages".