Patents
US 8,959,320 B2#10902252 Most CitedActiveUnited States (USPTO)Utility

Preventing update training of first predictor with mismatching second predictor for branch instructions with alternating pattern hysteresis

10Forward Citations (#10902252 Global)
0.9/yrCitation Velocity (#7899654 Global)
1.30Citation PageRank (#28357647 Global)
14Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A system and method for efficient branch prediction. A processor includes two branch predictors. A first branch predictor generates branch prediction data, such as a branch direction and a branch target address. The second branch predictor generates branch prediction data at a later time and with higher prediction accuracy. Control logic may determine whether the branch prediction data from each of the first and the second branch predictors match. If a mismatch occurs, the first predictor may be trained with the branch prediction data generated by the second branch predictor. A stored indication of hysteresis may indicate a given branch instruction exhibits a frequently alternating pattern regarding its branch direction. Such behavior may lead to consistent branch mispredictions due to the training is unable to keep up with the changing branch direction. When such a condition is determined to occur, the control logic may prevent training of the first predictor.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A processor comprising: a first branch predictor configured to: provide an indication whether a given branch instruction has hysteresis, wherein the hysteresis indicates the given branch instruction has a frequently alternating pattern for its branch direction; and generate first branch prediction data for the given branch instruction; a second branch predictor configured to generate second branch prediction data for the given branch instruction; and control logic configured to train the first branch predictor by updating stored values in the first branch predictor used to predict a branch dir

Technical Overview & Description

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

References Cited — Backward Prior Art (14)

PatentTitleYearCitations
US 5,740,415 AInstruction supplying apparatus with a branch target buffer having the contents so updated as to enhance branch prediction accuracy199845
US 5,758,142 ATrainable apparatus for predicting instruction outcomes in pipelined processors1998175
US 5,928,358 AInformation processing apparatus which accurately predicts whether a branch is taken for a conditional branch instruction, using small-scale hardware199922
US 6,115,810 ABi-level branch target prediction scheme with mux select prediction200016
US 6,374,349 B2Branch predictor with serially connected predictor stages for improving branch prediction accuracy2002100
US 6,553,488 B2Method and apparatus for branch prediction using first and second level branch prediction tables200353
US 6,647,490 B2Training line predictor for branch targets200313
US 6,721,877 B1Branch predictor that selects between predictions based on stored prediction selector and branch predictor index generation200442
US 2004225870 A1Method and apparatus for reducing wrong path execution in a speculative multi-threaded processor—35
US 2006036837 A1Prophet/critic hybrid predictor—17
US 2007239974 A1System and method for target branch prediction using correlation of local target histories—49
US 7,523,298 B2Polymorphic branch predictor and method with selectable mode of prediction200927
US 2009125707 A1System and method for speculative global history prediction updating—27
CN 101,763,248 ASystem and method for multi-mode branch predictor—18

Non-Patent Literature (5)

  • Extended European Search Report in Application No. 12185670.2-1954, Mar. 14, 2013, pp. 1-11.
  • Final Office Action in Japanese Patent Application No. 2012-230298, mailed Jun. 11, 2014, 11 pages.
  • Gao. Improving Branch Prediction Accuracy via Effective Source Information and Prediction Algorithms. Dec. 2008. Downloaded from etd.fcla.edu/CF/CFE0002283/Gao-Hongliang-200808-PhD.pdf on Nov. 9, 2012 pp. 1-113.
  • International Search Report and Written Opinion in application No. PCT/US 12/56983 mailed Dec. 17, 2012.
  • Loh, Gabriel H.; "Revisiting the Performance Impact of Branch Predictor Latencies;" IEEE International Symposium on Performance Analysis of Systems and Software, Mar. 19, 2006, ISBN: 978-1-4244-0186-4; pp. 59-69.