# US 2022/0019440 A1 · Linked miss-to-miss instruction prefetcher

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0019440 A1
- Document ID: US20220019440A1
- Status: Published application
- Kind: A1
- Application number: 16/929,208
- Filed: 2020-07-15
- Published: 2022-01-20
- Earliest claimed: 2020-07-15
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Naga P. Gorti; Mohit Karve
- Web page: https://patentgrep.com/patent/US20220019440A1

## CPC

- G06F 9/3802: {Instruction prefetching}
- G06F 9/3861: {Recovery, e.g. branch miss-prediction, exception handling (error detection or correction G06F11/00)}
- G06F 12/0862: with prefetch
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 2212/1024: Latency reduction
- G06F 2212/452: Instruction code
- G06F 2212/6028: Prefetching based on hints or prefetch instructions
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method to prefetch non-sequential instruction addresses (I/A) includes, determining, by a prefetch system, a first access attempt of a first I/A in a cache is a first miss, wherein the first I/A is included in a string of I/A's. The method further includes storing the first I/A in a linked miss-to-miss (LMTM) table. The method also includes determining a second access attempt of a second I/A in the cache is a second miss, wherein the second I/A is included in the string of I/A's. The method includes linking, in the LMTM table, the second miss to the first miss. The method also includes prefetching, in response to a third access attempt of the first I/A, the second I/A in the cache.

## Claims

### Claim 1

A computer-implemented method for prefetching instruction addresses (I/A) comprising:
determining, by a prefetch system, a first access attempt of a first I/A in a cache is a first miss, wherein the first I/A is included in a string of I/A's;
storing the first I/A in a linked miss-to-miss (LMTM) table;
determining a second access attempt of a second I/A in the cache is a second miss, wherein the second I/A is included in the string of I/A's;
linking, in the LMTM table, the second miss to the first miss; and
prefetching, in response to a third access attempt of the first I/A, the second I/A in the cache.

### Claim 2 (depends on 1)

The method of claim 1, wherein the second I/A and the first I/A are non-sequential in a long-term storage.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
fetching, in response to the first access attempt, a third I/A included in the string of I/A's, wherein the third I/A immediately follows the first I/A in the string of I/A's.

### Claim 4 (depends on 3)

The method of claim 3, wherein the third I/A is subsequent to the first I/A in a long-term storage.

### Claim 5 (depends on 4)

The method of claim 4, wherein the prefetch system includes a sequential prefetcher and a non-sequential prefetcher.

### Claim 6 (depends on 5)

The method of claim 5, wherein the prefetching of the second I/A is performed by the non-sequential prefetcher, and the fetching of the third I/A is performed by the sequential prefetcher.

### Claim 7 (depends on 5)

The method of claim 5, wherein the prefetching of the second I/A and fetching the third I/A are performed in parallel.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
determining a fourth access request for the second I/A results in a cache hit.

### Claim 9 (depends on 8)

The method of claim 8, wherein the cache is configured to maintain the second I/A in the cache until the cache hit.

### Claim 10 (depends on 1)

The method of claim 1 wherein the cache is a highest tier cache.

### Claim 11

A system for prefetching comprising:
a processor;
a long-term storage;
a cache;
a prefetch system that includes a linked miss-to-miss (LMTM) table, wherein the LMTM table links a cache miss with a previous cache miss; and
a computer-readable storage medium communicatively coupled to the processor and storing program instructions which, when executed by the processor, are configured to cause the processor to:
prefetch, in response to a first instruction address (I/A) being included in the LMTM table, a second I/A into the cache.

### Claim 12 (depends on 11)

The system of claim 11, wherein the program instructions are further configured to cause the processor to:
add, on a first pass, the first I/A and the second I/A to the LMTM table.

### Claim 13 (depends on 12)

The system of claim 12, wherein the first I/A and the second I/A are included in a string of I/As, the first I/A precedes the second in the string of I/As.

### Claim 14 (depends on 13)

The system of claim 13, wherein the first I/A and the second I/A are stored non-sequentially in the long-term storage.

### Claim 15 (depends on 11)

The system of claim 11 wherein the prefetch system further comprises a sequential prefetcher, and the program instructions are further configured to cause the processor to:
prefetch, in parallel with prefetching the second I/A, a set of I/As, wherein the set of I/A are stored in the long term storage sequentially with the first I/A.

### Claim 16

A computer program product, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processing unit to cause the processing unit to:
determine, by a prefetch system, a first access attempt of a first I/A in a cache is a first miss, wherein the first I/A is included in a string of I/A's;
store the first I/A in a linked miss-to-miss (LMTM) table;
determine a second access attempt of a second I/A in the cache is a second miss, wherein the second I/A is included in the string of I/A's;
link, in the LMTM table, the second miss to the first miss; and
prefetch, in response to a third access attempt of the first I/A, the second I/A in the cache.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the second I/A and the first I/A are non-sequential in a long-term storage.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein the program instructions are further configured to cause the processing unit to:
fetch, in response to the first access attempt, a third I/A included in the string of I/A's, wherein the third I/A immediately follows the first I/A in the string of I/A's.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the third I/A is sequential to the first I/A in a long-term storage.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the prefetch system includes a sequential prefetcher and a non-sequential prefetcher.
