Dynamic hammock branch training for branch hammock detection in an instruction stream executing in a processor
Abstract
Dynamic hammock branch training for branch hammock detection in an instruction stream executing in a processor is disclosed. A branch hammock detection circuit is configured to dynamically detect branch hammocks in an instruction stream during run-time processing of the instruction stream. In response to an identified conditional branch instruction, the branch hammock detection circuit starts a training process for a potential branch hammock predicated by the conditional branch instruction. The branch hammock detection circuit is configured to determine if an identified in-training branch hammock is an actual branch hammock based on setting a potential convergence point as the target address for the conditional branch instruction based on whether the branch is taken or not taken. If an instruction is processed at the set convergence point, this means the set convergence point can be an actual convergence point and the in-training branch hammock can be detected as an actual branch hammock.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A branch hammock detection circuit for detecting branch hammocks configured to: receive a conditional branch instruction record in an instruction stream being processed in a processor, the conditional branch instruction record comprising an instruction identifier of a conditional branch instruction in the instruction stream and a branch target address for the conditional branch instruction in the instruction stream; receive one or more instructions in the instruction stream processed by the processor following the conditional branch instruction in the instruction stream in a first 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 (3 of 3 total)
References Cited — Backward Prior Art (13)
Non-Patent Literature (5)
- “International Search Report and Written Opinion Issued in PCT Application No. PCT/US2020/038852”, dated Nov. 9, 2020, 10 Pages.
- Collins, et al., “Control Flow Optimization Via Dynamic Reconvergence Prediction”, In Proceedings of 37th International Symposium on Microarchitecture, Dec. 4, 2004, 12 Pages.
- Kim, et al., “Compiler-Assisted Dynamic Predicated Execution of Complex Control-Flow Structures”, In Technical Report of High Performance Systems Group,Department of Electrical and Computer Engineering,The University of Texas at Austin,TR-HPS-2006-005, Apr. 2006, 26 Pages.
- Kim, et al., “Profile-assisted Compiler Support for Dynamic Predication in Diverge-Merge Processors”, In Proceedings of the International Symposium on Code Generation and Optimization, Mar. 11, 2007, 12 Pages.
- Santos, et al., “Complex Branch Profiling for Dynamic Conditional Execution”, In Proceedings of 15th Symposium on Computer Architecture and High Performance Computing, Nov. 10, 2003, 8 Pages.