[PATCH] D140702: [exegesis] "Skip codegen" dry-run mode

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 27 10:53:26 PST 2022


lebedev.ri created this revision.
lebedev.ri added reviewers: RKSimon, courbet, gchatelet.
lebedev.ri added a project: LLVM.
Herald added a subscriber: mstojanovic.
Herald added a project: All.
lebedev.ri requested review of this revision.

While "skip measurements mode" is super useful for test coverage,
i've come to discover it's trade-offs. It still calls back-end
to actually codegen the target assembly, and that is what is taking
80%+ of the time regardless of whether or not we skip the measurements.

On the other hand, just being able to see that exegesis can come up
with a snippet to measure something, is already very useful,
and takes maybe a second for a all-opcode sweep.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140702

Files:
  llvm/docs/CommandGuide/llvm-exegesis.rst
  llvm/test/tools/llvm-exegesis/X86/latency/skip-codegen.s
  llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
  llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h
  llvm/tools/llvm-exegesis/lib/LatencyBenchmarkRunner.cpp
  llvm/tools/llvm-exegesis/lib/LatencyBenchmarkRunner.h
  llvm/tools/llvm-exegesis/lib/Target.cpp
  llvm/tools/llvm-exegesis/lib/Target.h
  llvm/tools/llvm-exegesis/lib/UopsBenchmarkRunner.h
  llvm/tools/llvm-exegesis/llvm-exegesis.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140702.485399.patch
Type: text/x-patch
Size: 12245 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221227/05aad291/attachment.bin>


More information about the llvm-commits mailing list