Mechanism to avoid explicit prologs in software pipelined do-while loops
Abstract
The present invention provides a mechanism that facilitates speculative execution of instructions within software-pipelined loops. In accordance with one embodiment of the invention, a software-pipelined loop is initialized with a speculative instruction deactivated. At least one initiation interval of the software-pipelined loop is executed, and the speculative instruction is activated. Subsequent initiation intervals of the software-pipelined loop are then executed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 14.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method comprising: initializing to false a predicate that guards a speculative instruction in a software-pipelined loop; executing at least one iteration of the software-pipelined loop, including an instruction that sets the predicate to true if an associated live-in value is consumed; and executing the speculative instruction in subsequent iterations of the software-pipelined loop.
- Claim 2Depends on #1
The method of claim 1 , wherein the instruction that sets the predicate true is gated by a stage predicate of the software-pipelined loop.
- Claim 3Depends on #2
The method of claim 2 , wherein executing—at least one iteration of the software-pipelined loop comprises executing the predicate setting instruction when the stage predicate is true.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (5)
- "Code Generation Schema for Modulo Scheduled Loops", B. Ramakrishn Rau et al, ACM, 1992.
- "Register Allocation for Software Pipelined Loops", B.R. Rau et al, ACM, 1992.
- "Software Pipelining Loops with Conditional Branches", Mark G. Stoodley et al, ACM, 1996.
- "Unrolling-Based Optimizations for Modulo-Scheduling". Daniel M. Lavery et al, ACM, 1995.
- Advanced Compiler Design And Implementation, Steven S. Muchnick, Aug. 19, 1997, pp. 267, 548-551.