Speculative问题 对cmov的影响这里就不讨论了,扯太远了 https://llvm.org/docs/SpeculativeLoadHardening.html • https://danluu.com/branch-prediction
它可以提供例如cache miss和分支跳转预测错误(branch-prediction misses)等CPU层面的统计。
liruilongs.github.io]-[~] └─$valgrind --tool=cachegrind hostnamectl ==2833== Cachegrind, a cache and branch-prediction