Method for software pipelining of irregular conditional control loops
Abstract
A method for software pipelining of irregular conditional control loops including pre-processing the loops so they can be safely software pipelined. The pre-processing step ensures that each original instruction in the loop body can be over-executed as many times as necessary. During the pre-processing stage, each instruction in the loop body is processing in turn (N 4 ). If the instruction can be safely speculatively executed, it is left alone (N 6 ). If it could be safely speculatively executed except that it modifies registers that are live out of the loop, then the instruction can be pre-processed using predication or register copying (N 7 , N 8 , N 9 ). Otherwise, predication must be applied (N 10 ). Predication is the process of guarding an instruction. When the guard condition is true, the instruction executes as though it were unguarded. When the guard condition is false, the instruction is nullified.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 13.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method of pipelining program loops having irregular loop control comprises the steps of: determining which instructions in loop code in a memory may be speculatively executed, if it is determined that the instruction would be able to be speculatively executed except that it modifies a register that is alive out of the loop performing the steps of: storing in a computer memory a set of registers that are modified by said instruction and are alive out of the loop, and modifying the program code so that the values of those registers are saved to a temporary register during all proper iterations
- Claim 2Depends on #1
The method of claim 1 , applied to any program loops wherein a minimum trip count is reduced to one.
- Claim 3Depends on #1
The method of claim 1 , applied to any progra
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (2)
Non-Patent Literature (4)
- Bringmann Alex., "Enhancing Instruction Level Parallelism through compiler-controlled speculation", Univ. of Illinois, 1995.*
- Rau et al., "Code Generation Schema for Modulo Scheduled Loops", ACM Proceedings of the 25th annual International Symposium on Microarchitecture, Dec. 1992, vol. 23, iss. 1-2.*
- Rau et al., "Register Allocation for Software Pipelined Loops", Jun. 1992, In Proc. of the ACM SIGPLAN'92 Conference on Programming Language Design and Implementation, pp. 283-299.
- Schlansker et al., "Achieving High Levels of Instructions-Level Parallelism with Reduced Hardware Complexity", Nov. 1994, HPL-96-120, www.hpl.hp.com/techreports/96/HPL-96-120.pdf.*