Patents
US 7,809,933 B2#2457021 Most CitedActiveUnited States (USPTO)Utility

System and method for optimizing branch logic for handling hard to predict indirect branches

29Forward Citations (#2457021 Global)
1.8/yrCitation Velocity (#2503176 Global)
2.09Citation PageRank (#13504675 Global)
1Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A system and method for optimizing the branch logic of a processor to improve handling of hard to predict indirect branches are provided. The system and method leverage the observation that there will generally be only one move to the count register (mtctr) instruction that will be executed while a branch on count register (bcctr) instruction has been fetched and not executed. With the mechanisms of the illustrative embodiments, fetch logic detects that it has encountered a bcctr instruction that is hard to predict and, in response to this detection, blocks the target fetch from entering the instruction buffer of the processor. At this point, the fetch logic has fetched all the instructions up to and including the bcctr instruction but no target instructions. When the next mtctr instruction is executed, the branch logic of the processor grabs the data and starts fetching using that target address. Since there are no other target instructions that were fetched, no flush is needed if that target address is the correct address, i.e. the branch prediction is correct.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method, in processor, comprising: detecting a hard to predict indirect branch instruction being provided to an instruction fetch unit of the processor; placing the instruction fetch unit in a wait mode of operation, in response to detecting a hard to predict indirect branch instruction being provided to the instruction fetch unit, waiting for a branch target address to be provided, via a bus, to a count register used by the indirect branch instruction; extracting the branch target address from the bus as the branch target address is being provided to the count register; placing the extracted

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (1)

Non-Patent Literature (3)

  • Aragon et al.; Power-Aware Control Speculation through Selective Throttling; 2003; ISHPCA '03.
  • Black et al.; Perceptron-based Confidence Estimation for Value Prediction; 2004; IEEE.
  • Tendler et al., "POWER4 System Microarchitecture", IBM Corporation, Technical White Paper, Oct. 2001, pp. 1-33.