[PATCH] D53976: [llvm-mca] Add extra counters for move elimination in view RegisterFileStatistics.

Andrea Di Biagio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 1 07:16:07 PDT 2018


andreadb created this revision.
andreadb added reviewers: RKSimon, spatel, mattd, craig.topper, courbet, gchatelet, orodley.
Herald added subscribers: gbedwell, tschuett.

This patch teaches view RegisterFileStatistics how to report events for optimizable register moves.

For each processor register file, view RegisterFileStatistics reports the following extra information:

- Number of optimizable register moves
- Number of register moves eliminated
- Number of zero moves (i.e. register moves that propagate a zero)
- Max Number of moves eliminated per cycle.

Let me know if okay to commit.

Thanks,
Andrea


https://reviews.llvm.org/D53976

Files:
  test/tools/llvm-mca/X86/BtVer2/reg-move-elimination-1.s
  test/tools/llvm-mca/X86/BtVer2/reg-move-elimination-2.s
  test/tools/llvm-mca/X86/BtVer2/reg-move-elimination-3.s
  test/tools/llvm-mca/X86/BtVer2/reg-move-elimination-4.s
  test/tools/llvm-mca/X86/BtVer2/reg-move-elimination-5.s
  tools/llvm-mca/Views/RegisterFileStatistics.cpp
  tools/llvm-mca/Views/RegisterFileStatistics.h
  tools/llvm-mca/include/HardwareUnits/RegisterFile.h
  tools/llvm-mca/include/Instruction.h
  tools/llvm-mca/include/Stages/DispatchStage.h
  tools/llvm-mca/lib/HardwareUnits/RegisterFile.cpp
  tools/llvm-mca/lib/Stages/DispatchStage.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53976.172119.patch
Type: text/x-patch
Size: 22939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181101/8ba0557f/attachment.bin>


More information about the llvm-commits mailing list