[PATCH] D53976: [llvm-mca] Add extra counters for move elimination in view RegisterFileStatistics.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 1 10:30:06 PDT 2018
RKSimon added inline comments.
================
Comment at: tools/llvm-mca/Views/RegisterFileStatistics.cpp:61
+void RegisterFileStatistics::updateMoveElimInfo(const Instruction &Inst) {
+ if (Inst.isOptimizableMove()) {
+ assert(Inst.getDefs().size() == 1 && "Expected a single definition!");
----------------
(style)
```
if (!Inst.isOptimizableMove())
return;
```
https://reviews.llvm.org/D53976
More information about the llvm-commits
mailing list