Patents
US 6,823,447 B2#3138959 Most CitedExpiredUnited States (USPTO)Utility

Software hint to improve the branch target prediction accuracy

24Forward Citations (#3138959 Global)
1.1/yrCitation Velocity (#5835146 Global)
7.32Citation PageRank (#1779461 Global)
8Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A field is defined in branch instructions which is interpreted by software as “Hint” bits and these bits are used to signal the processor of special circumstances that may arise when doing speculative branch instruction execution to enable better branch address prediction accuracy and a reduction in link stack corruption which improves overall execution times. A programmer or compiler determines if a branch instruction usage fits in the context for a Hint action. If so, the compiler or programmer, using assembly/machine language, sets Hint bits in the branch instruction when it is compiled. If the branch is later speculatively executed, the processor decodes the Hint bits and executes and a hardware action corresponding the decode of the Hint bits. These Hints include four specific Hint actions, however, the field reserved for Hint bits is five bit wide reserving up to thirty-two specific Hint cases may be specified. These Hint cases (or Hint bits) may be interpreted differently for each type of branch instruction supported.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for improving branch instruction target address prediction comprising the steps of: providing a predetermined Hint bit field within said branch instruction when said branch instruction is a branch to link register (baclr[l]) instruction or a branch to count register (bacctr[l]) instruction; storing Hint bits in said Hint bit field in response to a use of said branch instruction in a software routine; decoding said Hint bits when said branch instruction is subsequently speculatively executed; and executing a hardware action corresponding to said decoding of said Hint bits, wherein said

Technical Overview & Description

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

Cited By — Indexed Forward Citations (15 of 24 total)

PatentTitleYearCitations
US 2005273776 A1Assembler supporting pseudo registers to resolve return address ambiguity—17
US 2009198962 A1Data processing system, processor and method of data processing having branch target address cache including address type tag bit—7
US 10,795,683 B2Predicting indirect branches using problem branch filtering and pattern cache20201
US 2010293339 A1Data processing system, processor and method for varying a data prefetch size based upon data usage—14
US 2008307210 A1System and Method for Optimizing Branch Logic for Handling Hard to Predict Indirect Branches—25
US 2008098205 A1Apparatus and methods for stabilization of processors, operating systems and other hardware and/or software configurations—22
US 7,971,104 B2Apparatus and methods for stabilization of processors, operating systems and other hardware and/or software configurations20119
US 7,865,705 B2Branch target address cache including address type tag bit20115
US 7,844,807 B2Branch target address cache storing direct predictions20100
US 9,851,973 B2Dynamic branch hints using branches-to-nowhere conditional branch20170
US 2010268885 A1Specifying an access hint for prefetching limited use data in a cache hierarchy—2
US 2008288753 A1Methods and Apparatus for Emulating the Branch Prediction Behavior of an Explicit Subroutine Call—1
US 8,086,831 B2Indexed table circuit having reduced aliasing20110
US 8,943,300 B2Method and apparatus for generating return address predictions for implicit and explicit subroutine calls using predecode information20152
US 2009198921 A1Data processing system, processor and method of data processing having reduced aliasing in branch logic—0

Non-Patent Literature (1)

  • Chen et al. "Analysis of Branch Prediction via Data Compression", Proceedings of the 7th international Conference on Architectural Support fpr for Programming Languages and Operating Systems, vol. 31, 30 Issue 9, 5, Sep. 1996.