Preventing update training of first predictor with mismatching second predictor for branch instructions with alternating pattern hysteresis
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)
- 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 ↗
Cited By — Indexed Forward Citations (10 of 10 total)
References Cited — Backward Prior Art (14)
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.