# US 2010/0169625 A1 · Reducing branch checking for non control flow instructions

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

- Number: US 2010/0169625 A1
- Document ID: US20100169625A1
- Status: Published application
- Kind: A1
- Application number: 12/535,590
- Filed: 2009-08-04
- Published: 2010-07-01
- Earliest claimed: 2008-12-25
- Assignees: STMicroelectronics (Beijing) R&D Co., Ltd.
- Inventors: Kai-Feng Wang; Hong-Xia Sun; Yong-Qiang Wu
- Web page: https://patentgrep.com/patent/US20100169625A1

## CPC

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

## Abstract

Some microprocessors check branch prediction information in a branch history table and/or a branch target buffer. To check for branch prediction information, a microprocessor can identify which instructions are control flow instructions and which instructions are non control flow instructions. To reduce power consumption in the branch history table and/or branch target buffer, the branch history table and/or branch target buffer can check for branch prediction information corresponding to the control flow instructions and not the non control flow instructions.

## Claims

### Claim 1

A microprocessor for executing instructions, wherein the microprocessor fetches a group of instructions comprising at least one control flow instruction and at least one non control flow instruction, the microprocessor comprising:
a control instruction identification unit that stores control instruction identification information identifying the at least one non control flow instruction in the fetched group of instructions; and
a branch prediction unit that checks for branch prediction information corresponding to the at least one control flow instruction and does not check for branch prediction information corresponding to the at least one non control flow instruction.

### Claim 2 (depends on 1)

The microprocessor of claim 1, wherein the branch prediction unit comprises a branch history table.

### Claim 3 (depends on 1)

The microprocessor of claim 1, wherein the branch prediction unit comprises a branch target buffer.

### Claim 4 (depends on 1)

The microprocessor of claim 1, wherein the microprocessor is a superscalar processor that fetches the group of instructions in parallel.

### Claim 5 (depends on 1)

The microprocessor of claim 1, wherein the microprocessor executes the instructions according to a pipeline comprising a plurality of stages, wherein the branch prediction unit checks for branch prediction information in a first stage of the plurality of stages, the microprocessor further comprising:
an instruction cache from which the group of instructions is fetched in the first stage of the pipeline.

### Claim 6 (depends on 5)

The microprocessor of claim 5, further comprising an instruction cache tag array storing the control instruction identification information, wherein the control instruction identification information identifies the at least one control flow instruction, wherein the control instruction identification unit receives the control instruction identification information from the instruction cache tag array.

### Claim 7 (depends on 6)

The microprocessor of claim 6, further comprising at least one decoder that decodes the instructions to generate the control instruction identification information, wherein the instruction cache tag array receives the control instruction identification information from the at least one decoder.

### Claim 8 (depends on 5)

The microprocessor of claim 5, wherein the control instruction identification unit predicts an address of the instruction cache.

### Claim 9 (depends on 8)

The microprocessor of claim 8, wherein the microprocessor uses a program counter to access the instruction cache, and wherein the microprocessor further comprises:
a comparison unit that compares at least a portion of the program counter with the address predicted by the control instruction identification unit.

### Claim 10 (depends on 9)

The microprocessor of claim 9, wherein:
when the at least a portion of the program counter matches the address predicted by the control instruction identification unit, the branch prediction unit checks for branch prediction information corresponding to the at least one control flow instruction and does not check for branch prediction information corresponding to the at least one non control flow instruction.

### Claim 11

In a microprocessor that executes instructions, a method of checking branch prediction information, the method comprising:
fetching a group of instructions comprising at least one control flow instruction and at least one non control flow instruction; and
checking a branch prediction unit for branch prediction information corresponding to the at least one control flow instruction and not the at least one non control flow instruction.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
pre-decoding group of instructions to generate control instruction identification information identifying the at least one control flow instruction and the at least one non control flow instruction.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
storing the control instruction identification information in an instruction cache tag array.

### Claim 14 (depends on 12)

The method of claim 12, further comprising:
storing the control instruction identification information in a control instruction identification unit.

### Claim 15 (depends on 11)

The method of claim 11, further comprising:
accessing an instruction cache to fetch the group of instructions;
concurrently with accessing the instruction cache, accessing a control instruction identification unit storing control instruction identification information that identifies the at least one control flow instruction and the at least one non control flow instruction; and
checking the branch prediction unit based on the control instruction identification information concurrently with accessing the instruction cache.
