完善分支错过了非条件说明
我想了解我从事的程序的分支预测行为。为此,我使用perf工具。我录制了:
perf record -e branches,branch-misses
并与之可视化,
perf report --hierarchy -M intel
我会得到结果,但我不明白如何解释它们。我在左列中有百分比,但是根据正常说明发生了错误预测,例如添加RAX,RCR或移动RSI QWord Ptr [R14+0x8]等。
这是什么意思?在这些地方发生错误预测如何发生?如何解释它们。
I want to understand branch prediction behavior of a program I work on. For this, I use the perf tool. I recorded with:
perf record -e branches,branch-misses
and visualizing it with
perf report --hierarchy -M intel
I get results, but I don't understand how to interpret them. I have percentages in the left column, but instead of branches, mispredictions happen on normal instructions, for example, add rax, rcr, or move rsi QWORD PTR [r14+0x8], etc.
What does it mean? How is it possible for mispredictions happen in these places? How to interpret them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论