2009 · 50 citations · 23 references
EngineeringComputer EngineeringComputer ScienceCompilersComputer ArchitectureDesign AutomationBranch PredictionControl-flow AnalysisInstruction Set ArchitectureMemory Subsystem DesignMicroarchitecture DesignProcessor MicroarchitectureBranch Target BuffersBranch Target PredictionControl Flow PredictionIndirect Branch PredictionMicroarchitectural OptimizationProgram Performance EvaluationSoftware Reverse Engineering
Insights into branch predictor organization and operation can be used in architecture-aware compiler optimizations to improve program performance. Unfortunately, such details are rarely publicly disclosed. In this paper we introduce a set of experiment flows and corresponding microbenchmarks for reverse engineering cache-like branch target and outcome predictor structures, indexed by branch address or program path information. The experiment flows are demonstrated on the Intel Pentium M branch predictor. We have been able to determine the size, organization, internal operation, and interactions between various hardware structures used in the Pentium M branch predictor, namely the branch target buffer, indirect branch target buffer, loop branch predictor buffer, global predictor, and bimodal predictor. These findings have been validated using a functional PIN model.
23
Chi-Keung Luk, Robert Cohn, Robert Muth et al. · ACM SIGPLAN Notices · 2005 · 3.2K citations
Chi-Keung Luk, Robert Cohn, Robert Muth et al. · 2005 · 2.3K citations
The Alpha 21264 microprocessor
R. E. Kessler · IEEE Micro · 1999 · 863 citations
A study of branch prediction strategies
James E. Smith · 1998 · 794 citations · Full text
Branch Prediction Strategies and Branch Target Buffer Design