arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.13804cs.AR
收藏

利用定时信息研究误预测分支的不可预测性

The Non-Predictability of Mispredicted Branches using Timing Information

University of Cyprus(塞浦路斯大学);Univ. Grenoble Alpes, CNRS, Grenoble INP, TIMA(格勒诺布尔阿尔卑斯大学、法国国家科学研究中心、格勒诺布尔理工学院、TIMA)

Ioannis Constantinou, Arthur Perais, Yiannakis Sazeides

AI总结:

本文提出利用时序信息提升分支预测准确性的方法,发现特定难以预测分支可受益于微架构信息,但需进一步研究以确定有效信息向量。

摘要:

分支误预测延迟是现代核心中导致性能下降和能源浪费的最重要因素之一。最先进的预测器通常表现很好,但有时由于难以预测的分支而出现较高的每千指令误预测率。在本工作中,我们研究是否可以利用微架构信息(除了传统的分支历史)来提高预测准确性。我们的方法考虑了重新排序缓冲区(ROB)中较旧的分支和最近提交的分支的时序信息,以及相对于我们重新预测的分支的年轻分支的时序信息。我们提出了推测性分支解析(SBR),即在分支分配到ROB后N个周期内收集各种时序信息并用于重新预测。使用gem5模拟器,我们实现并进行了一项SBR的极限研究,使用TAGE-样预测器。我们的实验表明,所用的后分配时序信息无法在无界TAGE-SC上带来性能提升。然而,我们发现两个难以预测的分支,其中时序信息提供了优势,并深入分析了一个来理解原因。这一发现表明,预测器可能受益于特定的微架构信息来提高特定难以预测分支的准确性,并且在后端覆盖预测可能仍能带来性能收益,但需要进一步研究以确定此类信息向量。

英文摘要:

Branch misprediction latency is one of the most important contributors to performance degradation and wasted energy consumption in a modern core. State-of-the-art predictors generally perform very well but occasionally suffer from high Misprediction Per Kilo Instruction due to hard-to-predict branches. In this work, we investigate if predicting branches using microarchitectural information, in addition to traditional branch history, can improve prediction accuracy. Our approach considers branch timing information (resolution cycle) both for older branches in the Reorder Buffer (ROB) and recently committed, and for younger branches relative to the branch we re-predict. We propose Speculative Branch Resolution (SBR) in which, N cycles after a branch allocates in the ROB, various timing information is collected and used to re-predict. Using the gem5 simulator we implement and perform a limit-study of SBR using a TAGE-Like predictor. Our experiments show that the post-alloc timing information we used was not able to yield performance gains over an unbounded TAGE-SC. However, we find two hard to predict branches where timing information did provide an advantage and thoroughly analysed one of them to understand why. This finding suggests that predictors may benefit from specific microarchitectural information to increase accuracy on specific hard to predict branches and that overriding predictions in the backend may yet yield performance benefits, but that further research is needed to determine such information vectors.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑