Methods and apparatus for reducing interference in a branch history table of a microprocessor
Abstract
Interference in a branch history table of a microprocessor is reduced by methods and apparatus which predict the outcome of branch instructions (taken or not taken) through a combination of static and dynamic prediction techniques. Static prediction information (e.g., a compiler hint) may be stored in instruction memory, and dynamic prediction information is stored in a branch history table. A branch prediction results from an exclusive OR of static and dynamic prediction information. After execution of a branch instruction, an indication as to whether a branch was taken or not taken is exclusively ORed with the static prediction information for the branch instruction, and the result of this exclusive OR is used to update an appropriate entry in the branch history table. Using the methods and apparatus disclosed herein, two well-behaved branches may share an entry in a branch history table, yet not interfere with one another (even when the two well-behaved branches include one which is mostly taken, and one which is mostly not taken).
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 26.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of predicting outcomes of a plurality of branch instructions executed in a microprocessor, comprising: a) maintaining a branch history table comprising a plurality of entries; b) maintaining static prediction information for a plurality of branch instructions; c) predicting outcomes of the plurality of branch instructions, each outcome being predicted at least partly in response to the exclusive OR of: i static prediction information corresponding to a given one of the plurality of branch instructions; and ii an entry in the branch history table; and d) after executing each
- Claim 2Depends on #1
A method as in claim 1, wherein updating an entry in the branch h
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 26 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (5)
- "A Study of Branch Prediction Strategies", J. Smith, 1981, pp. 135-148.
- "Advanced Performance Features of the 64-BIT PA-8000", D. Hunt, Mar. 5, 1995, 7 pages.
- "Branch Prediction Strategies and Branch Target Buffer Design", J. Lee & A. Smith, Jan. 1984, pp. 6-22.
- "Compiler Optimizations for the PA-8000", A. Holler, Feb. 1997, 16 pages.
- "Correlation and Aliasing in Dynamic Branch Predictors", S. Sechrest, C. Lee, & T. Mudge, May 1996, pp. 22-32.