识别和利用稀疏分支相关性优化分支预测
Identifying and Exploiting Sparse Branch Correlations for Optimizing Branch Prediction
摘要:
分支预测可以说是高性能处理器体系结构中最重要的推测机制之一。提高分支预测准确性的常用方法是采用先前看到的分支方向的冗长历史记录来捕获分支之间的远距离相关性。历史越长,预测器可以用来发现预测模式的信息就越丰富。然而,如果没有适当的过滤,这种方法也可能严重扰乱预测器的内部机制,导致收益递减。本文研究了一个基本的控制流属性:分支和最近历史之间的相关性稀疏。首先,我们表明,稀疏分支相关性存在于标准的应用程序,更重要的是,这种相关性可以有效地使用稀疏建模方法计算。其次,我们引入了一个稀疏感知的分支预测机制,可以压缩编码和存储稀疏模型,以解锁基本的性能机会。我们评估了我们的方法的各种设计参数,证明MPKI的改进高达42%(平均2.3%),2KB的额外存储开销。我们对设计的电路级评估表明,它可以在可接受的分支预测延迟内运行,并在合理的功率和面积限制下运行。
英文摘要:
Branch prediction is arguably one of the most important speculative mechanisms within a high-performance processor architecture. A common approach to improve branch prediction accuracy is to employ lengthy history records of previously seen branch directions to capture distant correlations between branches. The larger the history, the richer the information that the predictor can exploit for discovering predictive patterns. However, without appropriate filtering, such an approach may also heavily disorganize the predictor's internal mechanisms, leading to diminishing returns. This paper studies a fundamental control-flow property: the sparsity in the correlation between branches and recent history. First, we show that sparse branch correlations exist in standard applications and, more importantly, such correlations can be computed efficiently using sparse modeling methods. Second, we introduce a sparsity-aware branch prediction mechanism that can compactly encode and store sparse models to unlock essential performance opportunities. We evaluated our approach for various design parameters demonstrating MPKI improvements of up to 42% (2.3% on average) with 2KB of additional storage overhead. Our circuit-level evaluation of the design showed that it can operate within accepted branch prediction latencies, and under reasonable power and area limitations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。