[PATCH] D77422: [llvm-exegesis] Add benchmark mode that uses LBR for more precise measurements.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 2 23:58:05 PDT 2020
courbet added inline comments.
================
Comment at: llvm/tools/llvm-exegesis/llvm-exegesis.cpp:291
+ if (!ExpectedHostCpu.empty()) {
+ // The actual name could include variations, such as "skylake" vs
+ // "skylake-avx512" so we don't look for exact match.
----------------
This is a bit brittle, because we could imagine the name of some unrelated CPUs being substrings of others. What about having a repeated option `--allowed-host-cpu=skylake --allowed-host-cpu=skylake-avx512 --allowed-host-cpu=whateverlake`, and check that the exact value is one of these ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77422/new/
https://reviews.llvm.org/D77422
More information about the llvm-commits
mailing list