Method and apparatus for multi-versioning loops to facilitate modulo scheduling
Abstract
One embodiment of the present invention provides a system that facilitates multi-versioning loops to facilitate modulo scheduling. Upon receiving a computer program, the system analyzes the code to locate loops within the program. When a loop is located, the system examines the loop termination condition to determine if it is based on a “not-equal-to” condition that makes it hard to determine beforehand whether the loop will terminate. If the loop termination condition is based on a “not-equal-to” condition, the system creates multiple versions of the loop, at least one of which will terminate and can be modulo scheduled, and at least one of which might be an infinite loop and consequently cannot be modulo scheduled.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 11.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for multi-versioning loops in a computer program to facilitate modulo scheduling, comprising: receiving the computer program; locating a loop within the computer program; examining a termination condition for the loop; if the loop termination condition is based on a “not-equal-to” condition that makes it hard to determine beforehand whether the loop will terminate and consequently makes it hard to modulo schedule the loop, creating multiple versions of the loop, one of which might be an infinite loop and consequently cannot be modulo scheduled, and at least one of which is a non-infin
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (11 of 11 total)
References Cited — Backward Prior Art (2)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 6,059,841 A | Updating data dependencies for loop strip mining | 2000 | 17 |
| US 6,615,403 B1 | Compare speculation in software-pipelined loops | 2003 | 34 |