# US 2017/0371672 A1 · Stream based branch prediction index accelerator for multiple stream exits

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

- Number: US 2017/0371672 A1
- Document ID: US20170371672A1
- Status: Published application
- Kind: A1
- Application number: 15/446,681
- Filed: 2017-03-01
- Published: 2017-12-28
- Earliest claimed: 2016-06-27
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: James J. Bonanno; Michael J. Cadigan, JR.; Adam B. Collura; Daniel Lipetz
- Web page: https://patentgrep.com/patent/US20170371672A1

## CPC

- G06F 9/3806: {using address prediction, e.g. return stack, branch history buffer}
- G06F 9/3848: {using hybrid branch prediction, e.g. selection between prediction techniques}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method for predicting a taken branch that ends an instruction stream in a pipelined high frequency microprocessor includes receiving, by a processor, a first instruction within a first instruction stream, the first instruction comprising a first instruction address; searching, by the processor, an index accelerator predictor one time for the stream; determining, by the processor, a prediction for a taken branch ending the branch stream; influencing, by the processor, a metadata prediction engine based on the prediction; observing a plurality of taken branches from the exit accelerator predictor; maintaining frequency information based on the observed taken branches; determining, based on the frequency information, an updated prediction of the observed plurality of taken branches; and updating, by the processor, the index accelerator predictor with the the updated prediction.

## Claims

### Claim 1

A computer-implemented method for predicting a taken branch that ends an instruction stream in a pipelined high frequency microprocessor, the method comprising:
receiving, by a processor, a first instruction within a first instruction stream, the first instruction comprising a first instruction address;
searching, by the processor, an index accelerator predictor one time for the stream;
determining, by the processor, a prediction for a taken branch ending the instruction stream;
influencing, by the processor, a metadata prediction engine based on the prediction;
observing a plurality of taken branches that end the instruction stream;
maintaining frequency information based on the observed taken branches;
determining, based on the frequency information, an updated prediction of the observed plurality of taken branches; and
updating, by the processor, the index accelerator predictor with the updated prediction.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein determining a prediction for a taken branch ending the stream comprises selecting the most frequent taken branch from the plurality of taken branches based on the updated prediction.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein updating comprises increasing a frequency count indicative of when the observed taken branch matches one of the plurality of taken branches.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein updating further comprises replacing a prediction for a least frequently observed taken branch with the prediction for a more recent taken branch ending the stream.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein maintaining the frequency information comprises maintaining a separate frequency counter for each of the plurality of observed taken branches.
