[PATCH] D115138: [llvm-mca] Compare multiple files

Milica Matic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 6 02:24:46 PST 2021


mmatic05 created this revision.
mmatic05 added a reviewer: djtodoro.
mmatic05 added a project: LLVM.
Herald added subscribers: gbedwell, mgorny.
Herald added a reviewer: andreadb.
mmatic05 requested review of this revision.
Herald added a subscriber: llvm-commits.

Currently the llvm-mca supports getting the benchmark of a single file only. This patch introduces an option to compare multiple .S files.

The new option (-diff) is used as follows:

$ llvm-mca example1.s example2.s -diff
$ llvm-mca example1.s example2.s -diff -json
$ llvm-mca example1.s example2.s example3.s example4.s -diff

We've found it usefull internally when comparing results of multiple builds, by using some pretty printers written in python, that can be found at https://github.com/mmatic05/llvm-project/tree/LLVM-MCA#applying-the-script-to-assembly-code-obtained-from-llvmtoolsllcllccpp.


https://reviews.llvm.org/D115138

Files:
  llvm/test/tools/llvm-mca/X86/Inputs/diff-option-file-1.s
  llvm/test/tools/llvm-mca/X86/Inputs/diff-option-file-2.s
  llvm/test/tools/llvm-mca/X86/Inputs/diff-option-file-3.s
  llvm/test/tools/llvm-mca/X86/Inputs/diff-option-file-4.s
  llvm/test/tools/llvm-mca/X86/diff-option-four-files.s
  llvm/test/tools/llvm-mca/X86/diff-option-two-files.s
  llvm/tools/llvm-mca/CMakeLists.txt
  llvm/tools/llvm-mca/MachineCodePerformance.cpp
  llvm/tools/llvm-mca/MachineCodePerformance.h
  llvm/tools/llvm-mca/Views/ResourcePressureView.cpp
  llvm/tools/llvm-mca/Views/ResourcePressureView.h
  llvm/tools/llvm-mca/Views/SummaryView.cpp
  llvm/tools/llvm-mca/Views/SummaryView.h
  llvm/tools/llvm-mca/llvm-mca.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115138.391996.patch
Type: text/x-patch
Size: 36648 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211206/943cab97/attachment.bin>


More information about the llvm-commits mailing list