Representing loop branches in a branch history register with multiple bits
Abstract
In response to a property of a conditional branch instruction associated with a loop, such as a property indicating that the branch is a loop-ending branch, a count of the number of iterations of the loop is maintained, and a multi-bit value indicative of the loop iteration count is stored in a Branch History Register (BHR). In one embodiment, the multi-bit value may comprise the actual loop count, in which case the number of bits is variable. In another embodiment, the number of bits is fixed (e.g., two) and loop iteration counts are mapped to one of a fixed number of multi-bit values (e.g., four) by comparison to thresholds. Separate iteration counts may be maintained for nested loops, and a multi-bit value stored in the BHR may indicate a loop iteration count of only an inner loop, only the outer loop, or both.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 15.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of branch prediction, comprising: determining that a conditional branch instruction is a loop-ending branch instruction; counting a total number of iterations of a loop ended by the loop-ending branch instruction; storing a multi-bit value in a Branch History Register (BHR), the value equal to the total number of iterations of the loop upon termination of the loop; and indexing a Branch Predictor Table (BPT) with at least the BHR, after termination of the loop, to obtain a branch prediction for one or more conditional branch instructions following the loop-ending branch instruction, t
- Claim 2Depends on #1
The method of claim 1 wherein determining that a conditional branch instruction is a loop-ending branch instruction comprises detecting that th
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 15 total)
References Cited — Backward Prior Art (17)
Non-Patent Literature (5)
- European Search Report-EP12155320-Search Authority-The Hague-Jun. 6, 2012.
- International Prellminary Report on Patentablility-PCT/US07/064331, ISA, The International Bureau of WIPO, Geneva, Switzerland-Sep. 23, 2008.
- International Search Report-PCT/US07/064331, International Search Authority-European Patent Office-Oct. 10, 2007.
- Nakada, T, et al., "High Speed Simulation of High Performance Processor," Proceedings of the Symposium on Advanced Computing Systems and Infrastructures SACSIS2003, The Information Processing Society of Japan, May 2003, vol. 2003, pp. 89-96.
- Po-Yung Chang et al: "Improving Branch Prediction Accuracy by Reducing Pattern History Table Interference" Parallel Architectures and Compilation Techniques, 1996., Proceedings of the 1996 Conference on Boston, MA, USA Oct. 20-23, 1996, Los Alamitos, CA, USA, IEEE Comput. SOC, US, Oct. 20, 1996, pp.