# US 10,956,167 B2 · Mechanism for instruction fusion using tags

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

- Number: US 10,956,167 B2
- Document ID: US10956167B2
- Status: Granted
- Kind: B2
- Application number: 16/434,134
- Filed: 2019-06-06
- Published: 2020-12-10
- Granted: 2021-03-23
- Earliest claimed: 2019-06-06
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jessica Hui-Chun Tseng; Manoj Kumar; Kattamuri Ekanadham; Jose E. Moreira; Pratap C. Pattnaik
- Web page: https://patentgrep.com/patent/US10956167B2

## CPC

- G06F 9/30181: {Instruction operation extension or modification}
- G06F 9/3853: {of compound instructions}
- G06F 8/44: {Encoding}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 12/0815: Cache consistency protocols
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 2212/1021: Hit rate improvement
- G06F 2212/452: Instruction code
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An instruction fusion system in which instructions are tagged with extra bits to specify the conditions by which the instructions can be fused is provided. A computing device receives a first instruction to be executed at a processor. The computing device receives a first fusion tag that corresponds to the first instruction, the first fusion tag specifying a condition for fusing the first instruction with another instruction. The computing device determines whether the first instruction is allowed to fuse with a second instruction based on the first fusion tag. When the first instruction is allowed to fuse with the second instruction, the computing device generates a fused instruction based on the first instruction and the second instruction. The computing device executes the fused instruction at the processor.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving a first instruction to be executed at a processor;
receiving a first fusion tag that corresponds to the first instruction, the first fusion tag specifying a condition for fusing the first instruction with one or more other instructions;
determining whether the first instruction is allowed to fuse with a second instruction based on the first fusion tag; and
upon determining that the first instruction is allowed to fuse with the second instruction:
generating a fused instruction based on the first instruction and the second instruction; and
executing the fused instruction at the processor,
wherein the first fusion tag specifies that the first instruction is not allowed to fuse with the second instruction based on at least one of:
if a wait time between the first instruction and the second instruction is greater than a threshold time interval; or
if a load operation that the first instruction logically depends on results in a cache miss.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising modifying the first fusion tag based on a real-time condition of the processor.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the second instruction is identified based on the first fusion tag and a real-time condition at the processor.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising receiving a second fusion tag that corresponds to the second instruction, wherein the first fusion tag and the second fusion tag share an identifier of a group that includes both the first instruction and the second instruction.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the first fusion tag allows the first instruction to be fused with another instruction sharing a same identifier.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the first fusion tag prevents the first instruction from fusing with another instruction.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the first fusion tag specifies that instructions other than the first instruction have priority for instruction fusion and execution over the first instruction.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the fused instruction is generated based on the first instruction and one or more subsequent instructions.

### Claim 9

A computing device comprising:
a processor; and
one or more circuits configured to perform acts comprising:
receiving a first instruction to be executed at the processor;
receiving a first fusion tag that corresponds to the first instruction, the first fusion tag specifying a condition for fusing the first instruction with one or more other instructions and specifying that instructions other than the first instruction have priority for instruction fusion and execution over the first instruction;
determining whether the first instruction is allowed to fuse with a second instruction based on the first fusion tag; and
upon determining that the first instruction is allowed to fuse with the second instruction:
generating a fused instruction based on the first instruction and the second instruction; and
executing the fused instruction at the processor.

### Claim 10 (depends on 9)

The computing device of claim 9, wherein the one or more circuits are further configured to perform acts comprising:
modifying the first fusion tag based on a real-time condition of the processor.

### Claim 11 (depends on 9)

The computing device of claim 9, wherein the second instruction is identified based on the first fusion tag and a real-time condition at the processor.

### Claim 12 (depends on 9)

The computing device of claim 9, wherein the one or more circuits are further configured to perform acts comprising:
receiving a second fusion tag that corresponds to the second instruction, wherein the first fusion tag and the second fusion tag share an identifier of a group that includes both the first instruction and the second instruction.

### Claim 13 (depends on 9)

The computing device of claim 9, wherein the first fusion tag prevents the first instruction from fusing with another instruction.

### Claim 14 (depends on 9)

The computing device of claim 9, wherein the first fusion tag specifies that the first instruction is not allowed to fuse with the second instruction if a wait time between the first instruction and the second instruction is greater than a threshold time interval.

### Claim 15 (depends on 9)

The computing device of claim 9, wherein the first fusion tag specifies that the first instruction is not allowed to fuse with another instruction if a load operation that the first instruction logically depends on results in a cache miss.

### Claim 16

A computer program product comprising:
one or more non-transitory computer-readable storage devices and program instructions stored on at least one of the one or more non-transitory storage devices, the program instructions executable by a processor, the program instructions comprising sets of instructions for:
receiving a first instruction to be executed at the processor;
receiving a first fusion tag that corresponds to the first instruction, the first fusion tag specifying a condition for fusing the first instruction with one or more other instructions and specifying that instructions other than the first instruction have priority for instruction fusion and execution over the first instruction;
determining whether the first instruction is allowed to fuse with a second instruction based on the first fusion tag; and
upon determining that the first instruction is allowed to fuse with the second instruction:
generating a fused instruction based on the first instruction and the second instruction; and
executing the fused instruction at the processor.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the program instructions further comprise sets of instructions for:
receiving a second fusion tag that corresponds to the second instruction, wherein the first fusion tag and the second fusion tag share an identifier of a group that includes both the first instruction and the second instruction.
