hottub.patents
US 12,379,931 B2#3478134 Most CitedActiveUnited States (USPTO)Utility

Mechanism for instruction fusion

0Forward Citations (#3478134 Global)
0.0/yrCitation Velocity (#3478134 Global)
0.00Citation PageRank (#3478134 Global)
3Prior Art Cited
21Claims (3 Indep. · 18 Dep.)
3Drawings / Sheets

Abstract

A compute node capable of enhanced performance and/or energy savings is proposed. The proposed compute node may check whether a last instruction of a first group — retrieved in a first decode cycle — is potentially a fusible instruction. If so, the proposed compute node may refrain from decoding the last instruction in the first decode cycle. Instead, the proposed compute node may determine if a first instruction of a second group of instructions retrieved in a second decode cycle (subsequent to the first decode cycle) is fusible with the last instruction of the first group. If so, the two instructions may be fused to a single micro-operation.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 0.

Claims (21 — 3 Independent, 18 Dependent)

  1. Claim 1Independent Claim

    A compute node, comprising: one or more cores configured to execute micro-operations (μ ops); and a decoder configured to, in a decode cycle, decode a group of instructions stored in an instruction queue into corresponding μ ops for execution by the one or more cores, the group of instructions comprising a plurality of N instructions, wherein the decoder is further configured to: determine, during a first decode cycle, whether a first-last instruction is potentially fusible with another instruction, the first-last instruction being a last instruction N of a first group of instructions stored in the instruction queue, the first-last instruction being last to be decoded among the first group of instructions; retrieve, during a second decode cycle subsequent to the first decode cycle, one or more instructions from the instruction queue when it is determined that the first-last instruction is the fusible instruction; determine, during the second decode cycle, whether the first-last instruction is fusible with a second instruction, the second instruction being one of the one or more instructions retrieved during the second decode cycle; and fuse the first-last instruction and the second instruction into a single μ op for execution by at least one core of the one or more cores when it is determined that the first-last instruction is fusible with the second instruction.

  2. Claim 2Depends on #1

    The compute node of claim 1, wherein the first-last instruction is not decoded during the first decode cycle when it is determined that the first-last instruction is potentially fusible.

  3. Claim 3Depends on #1

    The compute node of claim 1, wherein the second instruction is an instruction to be decoded first among the one or more instructions retrieved during the second decode cycle.

  4. Claim 4Depends on #1

    The compute node of claim 1, wherein N − 1 instructions are retrieved during the second decode cycle.

  5. Claim 5Depends on #1

    The compute node of claim 1, wherein the decoder is further configured to decode, during the first decode cycle, the first-last instruction into one or more corresponding μ ops for execution by at least one core of the one or more cores when it is determined that the first-last instruction is not potentially fusible.

  6. Claim 6Depends on #1

    The compute node of claim 1, wherein the decoder is further configured to decode, during the second decode cycle, the first-last instruction into one or more corresponding μ ops for execution by at least one core of the one or more cores when it is determined that the first-last instruction is not fusible with the second instruction.

  7. Claim 7Depends on #1

    The compute node of claim 1, further comprising: a fusion instruction storage configured to store one or more fusible instruction pairs, each fusible instruction pair comprising a pair of instructions that are fusible with each other, wherein the decoder is configured to determine whether the first-last instruction is potentially fusible based on the fusion instruction storage.

  8. Claim 8Depends on #7

    The compute node of claim 7, wherein determining whether the first-last instruction is potentially fusible, the decoder is configured to: determine that the first-last instruction is potentially fusible when the first-last instruction matches an instruction of at least one fusible instruction pair of the one or more fusible instruction pairs.

  9. Claim 9Depends on #7

    The compute node of claim 7, wherein the fusion instruction storage further comprises, for each fusible instruction pair of the one or more fusible instruction pairs, a probability of the pair of instructions being ordered next to each other, and wherein determining whether the first-last instruction is potentially fusible, the decoder is configured to: determine that the first-last instruction is potentially fusible when the first-last instruction is included as an instruction of at least one fusible instruction pair of the one or more fusible instruction pairs, and the probability of the pair assembly of instructions being ordered next to each other is greater than a minimum threshold.

  10. Claim 10Depends on #7

    The compute node of claim 7, wherein the compute node is configured to populate the fusion instruction storage with the one or more fusible instruction pairs from a data source external to the compute node.

  11. Claim 11Independent Claim

    A method of decoding a plurality of instructions for a compute node, the compute node comprising a decoder configured to, in a decode cycle, decode a group of instructions stored in an instruction queue into corresponding μ ops for execution by the one or more cores, the group of instructions comprising a plurality of N instructions, the method comprising: determining, by the decoder during a first decode cycle, whether a first-last instruction is potentially fusible with another instruction, the first-last instruction being a last instruction N of a first group of instructions stored in the instruction queue, the first-last instruction being last to be decoded among the first group of instructions; retrieving, by the decoder during a second decode cycle subsequent to the first decode cycle, one or more instructions from the instruction queue when it is determined that the first-last instruction is the fusible instruction; determining, by the decoder during the second decode cycle, whether the first-last instruction is fusible with a second instruction, the second instruction being one of the one or more instructions retrieved during the second decode cycle; and fusing, by the decoder, the first-last instruction and the second instruction into a single μ op for execution by at least one core of the one or more cores when it is determined that the first-last instruction is fusible with the second instruction.

  12. Claim 12Depends on #11

    The method of claim 11, wherein the first-last instruction is not decoded during the first decode cycle when it is determined that the first-last instruction is potentially fusible.

  13. Claim 13Depends on #11

    The method of claim 11, wherein the second instruction is an instruction to be decoded first among the one or more instructions retrieved during the second decode cycle.

  14. Claim 14Depends on #11

    The method of claim 11, wherein N − 1 instructions are retrieved during the second decode cycle.

  15. Claim 15Depends on #11

    The method of claim 11, further comprising: decoding, by the decoder during the first decode cycle, the first-last instruction into one or more corresponding μ ops for execution by at least one core of the one or more cores when it is determined that the first-last instruction is not potentially fusible.

  16. Claim 16Depends on #11

    The method of claim 11, further comprising: decoding, by the decoder during the second decode cycle, the first-last instruction into one or more corresponding μ ops for execution by at least one core of the one or more cores when it is determined that the first-last instruction is not fusible with the second instruction.

  17. Claim 17Depends on #11

    The method of claim 11, wherein the compute node further comprises a fusion instruction storage configured to store one or more fusible instruction pairs, each fusible instruction pair comprising a pair of instructions that are fusible with each other, and wherein determining whether the first-last instruction is potentially fusible comprises determining whether the first-last instruction is potentially fusible based on the fusion instruction storage.

  18. Claim 18Depends on #17

    The method of claim 17, wherein determining whether the first-last instruction is potentially fusible with the another instruction, comprises: determining that the first-last instruction is potentially fusible when the first-last instruction matches an instruction of at least one fusible instruction pair of the one or more fusible instruction pairs.

  19. Claim 19Depends on #17

    The method of claim 17, wherein the fusion instruction storage further comprises, for each fusible instruction pair of the one or more fusible instruction pairs, a probability of the pair of instructions being ordered next to each other, and wherein determining whether the first-last instruction is fusible with the another instruction comprises: determining that the first-last instruction is potentially fusible when the first-last instruction is included as an instruction of at least one fusible instruction pair of the one or more fusible instruction pairs, and the probability of the pair of instructions being ordered next to each other is greater than a minimum threshold.

  20. Claim 20Depends on #17

    The method of claim 17, further comprising: populating the fusion instruction storage with the one or more fusible instruction pairs from a data source external to the compute node.

  21. Claim 21Independent Claim

    A compute node, comprising: means for determining, during a first decode cycle, whether a first-last instruction is potentially fusible with another instruction, the first-last instruction being a last instruction N of a first group of instructions stored in the instruction queue, the first-last instruction being last to be decoded among the first group of instructions; means for retrieving, during a second decode cycle subsequent to the first decode cycle, one or more instructions from the instruction queue when it is determined that the first-last instruction is the fusible instruction; means for determining, during the second decode cycle, whether the first-last instruction is fusible with a second instruction, the second instruction being one of the one or more instructions retrieved during the second decode cycle; and means for fusing the first-last instruction and the second instruction into a single μ op for execution by at least one core of the one or more cores when it is determined that the first-last instruction is fusible with the second instruction.

Technical Overview & Description

FIELD OF DISCLOSURE This disclosure relates generally to computing nodes such as system-on-chips (SoC). More specifically, but not exclusively, to a mechanism for instruction fusion for execution on the computing nodes. BACKGROUND In a computing node, a processor core (also referred to as a core) of the node decodes software instructions — e.g., assembly, machine instructions-into one or more micro-ops ( μ ops), which are what the execution portions of the core actually operate on. In some instances, two instructions can be ‘ fused ’ into a single μ op, which can improve performance and/or efficiency. Typically, latency of the fused μ op is less than if the two instructions were executed separately. This can improve the throughput of the instruction decoder. Also, there can be a reduction in energy and scheduling/execution resource consumption. Normally, the instruction decoder looks at a group of instructions at one time and can only detect fusion when the two fusible instructions fall within the same group. For example, a core may look at N instructions (e.g., 5) at a time at a time and produce upto N − 1 (e.g., 4) μ ops. However, there can be occasions in which two halves of a fusible pair of instructions can be split across groups. That is, the last instruction in one decode cycle may be fusible with a first instruction in the next decode cycle. In this instance, the two instructions are decoded separately, i.e., the fusion is missed. In this instance, the opportunity for fusion and the accompanying benefits (e.g., performance efficiency, energy saving, etc.) are lost. Accordingly, there is a need for systems, apparatus, and methods that overcome the deficiencies of conventional devices including the methods, system and apparatus provided herein. SUMMARY The following presents a simplified summary relating to one or more aspects and/or examples associated with the apparatus and methods disclosed herein. As such, the following summary should not be considered an

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (3)

PatentTitleYearCitations

Non-Patent Literature (2)

  • Singh et al.; Exploring Instruction Fusion Opportunities in General Purpose Processors; 2022; IEEE (Year: 2022).
  • Singh (Year: 2022).