Patents
US 7,234,136 B2#7877231 Most CitedExpiredUnited States (USPTO)Utility

Method and apparatus for selecting references for prefetching in an optimizing compiler

13Forward Citations (#7877231 Global)
0.7/yrCitation Velocity (#11209434 Global)
1.50Citation PageRank (#22881722 Global)
19Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

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.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 13.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for generating code to perform anticipatory prefetching for data references, comprising: receiving code to be executed on a computer system; analyzing the code to identify data references to be prefetched, wherein the data references are identified from basic blocks within if conditions regardless of whether the basic blocks are likely to execute, and wherein analyzing the code involves, performing a first marking phase in which only data references located in blocks that are certain to execute are considered in determining which data references are covered by preceding data reference

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (19)

PatentTitleYearCitations
US 5,349,656 ATask scheduling method in a multiprocessor system where task selection is determined by processor identification and evaluation information1994114
US 5,367,656 AControlling cache predictive prefetching based on cache hit ratio trend199472
EP 0,743,598 A2Compiler for increased data cache efficiency—11
US 5,704,053 AEfficient explicit data prefetching analysis and code generation in a low-level optimizer for inserting prefetch instructions into loops of applications1997178
EP 0,840,209 A2Instruction prefetching apparatus and instruction prefetching method—10
US 5,933,643 AProfiler driven data prefetching optimization where code generation not performed for loops199936
US 5,950,003 AProfile instrumentation method and profile data collection method1999176
US 6,047,363 APrefetching data using profile of cache misses from earlier code executions200091
US 6,055,558 APacing of multiple producers when information is required in natural order200013
US 6,154,826 AMethod and device for maximizing memory system bandwidth by accessing data in a dynamically determined order2000105
WO 0,144,927 A2Method and apparatus for performing prefetching at the function level—10
WO 0,152,061 A2Method and apparatus for using an assist processor to pre-fetch data values for a primary processor—13
US 6,401,187 B1Memory access optimizing method200233
US 2002069375 A1System, method, and article of manufacture for data transfer across clock domains—31
US 2003005419 A1Insertion of prefetch instructions into computer program code—97
US 6,539,541 B1Method of constructing and unrolling speculatively counted loops2003120
US 2003066061 A1Method and apparatus for performing compiler transformation of software code using fastforward regions and value specialization—28

Non-Patent Literature (1)

  • Publication entitled "Design and Evaluation of a Compiler Algorithm for Prefetching", by Todd C. Mowry et al., ACM Sigplan Notices, Sep. 1992, No. 9, XP000330590, pp. 62-73.