Cache prefetch and bypass using stride registers
Abstract
A technique and a mechanism accurately determines the correct prefetch line for loops with strides of 1, N, or a combination of stride values. Stride registers are used to assist in prefetching. Furthermore, stride register values can be used to specify "cacheability" of data on an object by object basis to prevent "cache flushing". The compiler uses a new instruction, "MOVE GPR TO STRIDE REGISTER", prior to a loop to insert the "calculated stride value(s)" into the stride register(s) associated with the index register(s) which will be incremented by that stride value. At the end of the loop, a second new instruction, "CLEAR STRIDE REGISTER SET", is used to place a value of zero in all of the stride registers to inhibit prefetching of data which would most likely not be used. A zero value in the stride registers inhibits prefetching. Non-zero values in the stride registers clearly mark the execution of a loop, which is where prefetching makes the most sense. It also clearly indicates the correct offset from the current address to use in determining the prefetch address. Since the offset is dependent on the particular index register used in sp
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 103.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computer system having a memory hierarchy including a main memory and a cache memory addressed by a central processing unit, said central processing unit including a plurality of addressing registers and an address generation mechanism for generating a data storage address to said cache memory, the improvement in said address generation mechanism comprising: stride register means for storing a plurality of stride values respectively representing a displacement between consecutive ones of data storage addresses generated by said address generation mechanism for a storage reference instruct
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 103 total)
References Cited — Backward Prior Art (3)
Non-Patent Literature (5)
- A. J. Smith, "Sequential Program Prefetching in Memory Hierarchies", IEEE Computer, Dec. 1978, pp. 7-21.
- A. J. Smith, Sequential Program Prefetching in Memory Hierarchies , IEEE Computer, Dec. 1978, pp. 7 21.
- Gindele, "Buffer Block Prefetching Method", IBM Technical Disclosure Bulletin, vol. 20, No. 2, Jul. 1977, pp. 696-697.
- Gindele, Buffer Block Prefetching Method , IBM Technical Disclosure Bulletin, vol. 20, No. 2, Jul. 1977, pp. 696 697.
- Pomerane et al., "Base/Displacement Lookahead Buffer", IBM Technical Disclosure Bulletin, vol. 22, No. 11, Apr. 1980, p. 5182.