Hardware supported software pipelined loop prologue optimization
Abstract
A method for optimizing a software pipelineable loop in a software code is provided. The loop comprises one or more pipelined stages and one or more loop operations. The method comprises evaluating an initiation interval time (IN) for a pipelined stage of the loop. A loop operation time latency (Tld) and a number of loop operations (Np) from the pipelined stages to peel based on IN and Tld is then determined. The loop operation is peeled Np times and copied before the loop in the software code. A vector of registers is allocated and the results of the peeled loop operations and a result of an original loop operation is assigned to the vector of registers. Memory addresses for the results of the peeled loop operations and original loop operation are also assigned.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 10.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for optimizing a software pipelineable loop in a software code, wherein the loop comprises one or more pipelined stages and one or more loop operations, the method comprising: (a) evaluating an initiation interval time (IN) for a pipelined stage of the loop; (b) determining a loop operation time latency (Tld); (c) determining a number of loop operations (Np) from the pipelined stages to peel based on IN and Tld; (d) peeling Np copies of the loop operation, wherein the number of peeled loop operations equals (Tld+IN−1)/IN; (e) copying the peeled loop operations before the loop in the s
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗