驯服狂野分支:使用 Bullseye 预测器克服难预测分支
Taming Wild Branches: Overcoming Hard-to-Predict Branches using the Bullseye Predictor
AI总结:
针对 TAGE-SC-L 中少数 H2P 分支导致多数剩余误预测的问题,本文提出并行的 Bullseye 子系统,通过识别、双感知器试验与驻留阈值机制将平均 MPKI 降至 3.4045。
摘要:
分支预测是乱序处理器性能的关键。尽管 CBP-2016 冠军 TAGE-SC-L 结合了几何历史表、统计校正器和循环预测器,但其剩余错误预测中超过一半源自一小部分难预测(H2P)分支。这些分支在多样的全局历史下出现,导致 TAGE 中反复颠簸,并在有用性计数器成熟之前被驱逐。先前工作表明,单纯扩大表只能带来边际改进。我们为一个 159 KB 的 TAGE-SC-L 预测器增加了一个 28 KB、面向 H2P 的子系统,称为 Bullseye 预测器。它使用组相联的 H2P 识别表(HIT)识别有问题的 PC,并将其引导至两个分支专用感知器之一,一个由哈希局部历史索引,另一个由折叠全局历史索引。短暂的试验阶段在 H2P 缓存中跟踪正面交锋的准确率。只有当感知器的持续准确率和输出幅度超过动态阈值时,分支才会成为感知器驻留分支;此后,抑制该 PC 的 TAGE 更新以减少污染。HIT、缓存和感知器与 TAGE-SC-L 完全并行运行,从而在 H2P 尾部提供更高保真度。这实现了 3.4045 的平均 MPKI 和 145.09 的 CycWpPKI。
英文摘要:
Branch prediction is key to the performance of out-of-order processors. While the CBP-2016 winner TAGE-SC-L combines geometric-history tables, a statistical corrector, and a loop predictor, over half of its remaining mispredictions stem from a small set of hard-to-predict (H2P) branches. These branches occur under diverse global histories, causing repeated thrashing in TAGE and eviction before usefulness counters can mature. Prior work shows that simply enlarging the tables offers only marginal improvement. We augment a 159 KB TAGE-SC-L predictor with a 28 KB H2P-targeted subsystem called the Bullseye predictor. It identifies problematic PCs using a set-associative H2P Identification Table (HIT) and steers them to one of two branch-specific perceptrons, one indexed by hashed local history and the other by folded global history. A short trial phase tracks head-to-head accuracy in an H2P cache. A branch becomes perceptron-resident only if the perceptron's sustained accuracy and output magnitude exceed dynamic thresholds, after which TAGE updates for that PC are suppressed to reduce pollution. The HIT, cache, and perceptron operate fully in parallel with TAGE-SC-L, providing higher fidelity on the H2P tail. This achieves an average MPKI of 3.4045 and CycWpPKI of 145.09.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。