Optimizing compiler having data cache prefetch spreading
AssigneeHewlett-Packard Company
InventorsWei Hsu, Loren Staley
Life of this patent
Estimating the term…
Loading patent…
AssigneeHewlett-Packard Company
InventorsWei Hsu, Loren Staley
Estimating the term…
A method of scheduling prefetch instructions in a compiler is described that improves performance by minimizing the performance degradation due to dirty cache misses. The method determines the length N of a loop (step 66). The number of prefetch instructions were M within that loop are then determined (step 68). A prefetch spacing P is then calculated according to the formula P=N/M, where the length of the loop is expressed in cycles (step 70). This prefetch spacing is then attached to each prefetch instruction and the instruction scheduler schedules the prefetch instructions so as to space the prefetch instructions apart by approximately the prefetch spacing P (step 72). After the scheduler arranged for P cycles, a prefetch instruction will be assigned a higher priority for scheduling in the next lot.
A method of scheduling instructions for execution on a computer system including a data cache or data cache hierarchy, the method comprising the steps of:
An optimizing compiler stored in a computer-readable memory device and executable by a computer system having a data cache or data cache hierarchy, the compiler comprising:
Dependencies are inferred from the claim text.