Issue No. 02 - July-December (2007 vol. 6)
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/L-CA.2007.7
J.A. Joao , Univ. of Texas at Austin, Austin
Indirect jumps are used to implement increasingly-common programming language constructs such as virtual function calls, switch-case statements, jump tables, and interface calls. Unfortunately, the prediction accuracy of indirect jumps has remained low because many indirect jumps have multiple targets that are difficult to predict even with specialized hardware. This paper proposes a new way of handling hard-to-predict indirect jumps: dynamically predicating them. The compiler identifies indirect jumps that are suitable for predication along with their control-flow merge (CFM) points. The microarchitecture predicates the instructions between different targets of the jump and its CFM point if the jump turns out to be hard-to-predict at run time. We describe the new indirect jump predication architecture, provide code examples showing why it could reduce the performance impact of jumps, derive an analytical cost-benefit model for deciding which jumps and targets to predicate, and present preliminary evaluation results.
Hardware, Microarchitecture, Pipelines, Computer languages, Instruction sets, Switches, Accuracy, Performance analysis, Object oriented modeling, Analytical models,Micro-architecture implementation considerations, Processor Architectures, Computer Systems Organization, Pipeline processors, Single Data Stream Architectures, Instruction fetch, Micro-architecture implementation considerations, Superscalar, dynamically-scheduled and statically-scheduled implementation
J.A. Joao, O. Mutlu, Hyesoon Kim, Y.N. Patt, "Dynamic Predication of Indirect Jumps", IEEE Computer Architecture Letters, vol. 6, no. , pp. 0, July-December 2007, doi:10.1109/L-CA.2007.7