Reducing Branch Misprediction Penalty via Selective Branch Recovery

  • Authors:
  • Amit Gandhi;Haitham Akkary;Srikanth T. Srinivasan

  • Affiliations:
  • Intel Corporation and Portland State University;Intel Corporation and Portland State University;Intel Corporation

  • Venue:
  • HPCA '04 Proceedings of the 10th International Symposium on High Performance Computer Architecture
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

Branch misprediction penalty consists of two components: the time wasted on mis-speculative execution until the mispredicted branch is resolved and the time to restart the pipeline with useful instructions once the branch is resolved. Current processor trends, large instruction windows and deep pipelines, amplify both components of the branch misprediction penalty. In this paper, we propose a novel method, called Selective Branch Recovery (SBR), to reduce both components of branch misprediction penalty. SBR exploits a frequently occurring type of control independence 驴 exact convergence 驴 where the mispredicted path converges exactly at the beginning of the correct path. In such cases, SBR selectively reuses the results computed during mis-speculative execution and obviates the need to fetch or rename convergent instructions again. Thus, SBR addresses both components of branch misprediction penalty. To increase the likelihood of branch mispredictions that can be handled with SBR, we also present an effective means for inducing exact convergence on mis-speculative paths. With SBR, we significantly improve performance (between 3%-22%, average 8%) on a wide range of benchmarks over our baseline processor that does not exploit SBR.