×

Hardware supported software pipelined loop prologue optimization

  • US 20020133813A1
  • Filed: 10/04/2001
  • Published: 09/19/2002
  • Est. Priority Date: 02/17/1999
  • Status: Active Grant
First Claim
Patent Images

1. 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;

    (e) copying the peeled loop operations before the loop in the software code;

    (f) allocating a vector of registers;

    (g) assigning results of the peeled loop operations and a result of an original loop operation to the vector of registers; and

    (h) assigning memory addresses to the results of the peeled loop operations and original loop operation.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×