Software hint to improve the branch target prediction accuracy
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)
- 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)
References Cited — Backward Prior Art (8)
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.