Methods and apparatus for insulating a branch prediction mechanism from data dependent branch table updates that result from variable test operand locations
Abstract
Methods and apparatus are described for processing branch instructions using a history based branch prediction mechanism (such as a branch history table) in combination with a data dependent branch table (DDBT), where the branch instructions can vary in both outcome and test operand location. The novel methods and apparatus are sensitive to branch mispredictions and to operand addresses used by the DDBT, to identify irrelevant DDBT entries. Irrelevant DDBT entries are identified within the prediction mechanism using state bits which, when set, indicate that: (1) a given entry in the prediction mechanism was updated by the DDBT and (2) subsequent to such update a misprediction occurred making further DDBT updates irrelevant. Once a DDBT entry is determined to be irrelevant, it is prevented from updating the prediction mechanism. The invention also provides methods and apparatus for locating and removing irrelevant entries from the DDBT. The update packet, sent by the DDBT to the history based prediction mechanism, is expanded to include the test operand address actually used by the DDBT. If the state bits indicate the update is irrelevant, then the operand address can be used to loc
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 30.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computing machine, apparatus for predicting the outcome of branch instructions, comprising: a processor; memory for storing information for said processor, said information including instructions and operands; first means for performing history based branch prediction, including means for recording prior branch actions of branch instructions processed by said processor; second means for detecting occurrences of modifications to operands upon which at least some of said recorded prior branch instruction actions depended and correcting at least some of said recorded prior branch instr
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 30 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- "Address Generate Interlock Avoidance for Branch Instructions in a Branch-History-Table Processor", G. C. Driscoll et al., IBM TDB, vol. 24, No. 1A, Jun. 1981.
- "Comprehensive Branch Prediction Mechanism for BC", R. N. Rechtschaffen et al., IBM TDB, vol. 28, No. 5, Oct. 1985.
- "Preferred Block Encoding for Truncated BHT Entries", P. G. Emma et al., IBM TDB, vol. 28, No. 9, Feb. 1986.
- Address Generate Interlock Avoidance for Branch Instructions in a Branch History Table Processor , G. C. Driscoll et al., IBM TDB, vol. 24, No. 1A, Jun. 1981.
- Comprehensive Branch Prediction Mechanism for BC , R. N. Rechtschaffen et al., IBM TDB, vol. 28, No. 5, Oct. 1985.