Early exit transformations for software pipelining
Abstract
The invention is directed to the transformation of software loops having early exit conditions, thereby allowing the loops to be more effectively converted to a single basic block for software pipelining. The invention assigns a predicate register for each early exit condition of the software loop. The predicate registers are set when the corresponding early exit condition is satisfied. In this manner, when the loop terminates the predicate registers can be examined to indicate which early exit conditions were satisfied. The invention produces loops having a lower recurrence II and resource II than conventional techniques.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 36.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A computer-implemented method for transforming a software loop having one or more early exits comprising: assigning a predicate register for each early exit of a software loop; setting the assigned predicate register when the corresponding early exit condition is satisfied; and examining the assigned predicate registers when the software loop terminates to determine which early exit conditions are satisfied.
- Claim 2Depends on #1
The method of claim 1 and further comprising: assigning a predicate register for a loop branch that controls whether the software loop is repeated; initializing the predicate register controlling the loop branch such that loop branch defaults to exiting the loop; and modifying the early exits to jump to the loop branch.
- Claim 3Depends on #1
The method of claim 1 and further
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 36 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (3)
- Advanced Compiler Design & Implementation, Steven S. Muchnick, Chapters 17-20 , published Aug. 19, 1997.*
- Compilers Principles, Techniques and Tools, Aho et al, Chapters 9-10, published Sep. 12, 1985.*
- Tirumalai, P., et al., "Parallelization of Loops with Exits on Pipelined Architectures", Supercomputing Conference, Sponsored by IEEE Computer Society, 200-212, (Dec. 1990).