[PATCH] D77422: [llvm-exegesis] Add benchmark mode that uses LBR for more precise measurements.

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 26 22:18:29 PDT 2020


oontvoo marked an inline comment as done.
oontvoo added inline comments.


================
Comment at: llvm/tools/llvm-exegesis/lib/Target.h:69
 
+  virtual Expected<std::unique_ptr<pfm::Counter>>
+  createCounter(const char *CounterName, const LLVMState &State) const;
----------------
courbet wrote:
> Can you submit this change independently and rebase ? Thanks !
Done https://reviews.llvm.org/D80610


================
Comment at: llvm/tools/llvm-exegesis/lib/X86/X86Counter.cpp:184
+    } else if (PollResult == 0) {
+      llvm::errs() << "LBR polling timed out without result, NumTimeouts ="
+                   << NumTimeouts << ". ";
----------------
courbet wrote:
> how often does that happen ? Do we want that much logging ?
It could happen 100% of the time if the code happens to have no branches.
With "proper" input, it happens less frequently. I don't really have a sense of how often ... it's probably be fine to change this to llvm::debug() or something? 




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