METHOD AND APPARATUS FOR SELECTING REFERENCES FOR PREFETCHING IN AN OPTIMIZING COMPILER
Patent №
US 7,234,136
Granted
2007-06-19
Filed 2001
Owner
SUN MICROSYSTEMS, INC.
Lab
—
AI components
1
hardware
Assignment
Recorded
Dataset
AIPD
2023_r1 edition
Application
10052997
One embodiment of the present invention provides a system that generates code to perform anticipatory prefetching for data references. During operation, the system receives code to be executed on a computer system. Next, the system analyzes the code to identify data references to be prefetched. This analysis can involve: using a two-phase marking process in which blocks that are certain to execute are considered before other blocks; and analyzing complex array subscripts. Next, the system inserts prefetch instructions into the code in advance of the identified data references. This insertion can involve: dealing with non-constant or unknown stride values; moving prefetch instructions into preceding basic blocks; and issuing multiple prefetches for the same data reference.
AI classification
Ownership
SUN MICROSYSTEMS, INC.
assignment · 125160533
Assignors
TIRUMALAI, PARTHA P, KALOGEROPULOS, SPIROS, RAJAGOPALAN, MAHADEDEVAN, SONG, YONGHONG, RAO, VIKRAM
On an employer assignment, the assignors are typically the inventors.