diff options
author | QingShan Zhang <qshanz@cn.ibm.com> | 2020-08-07 07:09:48 +0000 |
---|---|---|
committer | QingShan Zhang <qshanz@cn.ibm.com> | 2020-08-07 07:09:48 +0000 |
commit | 2b2bfdb474da0bf070a8e5a06f704a37a06500d6 (patch) | |
tree | e829bac449c8fb3380878b7c262c5e64419ceeaa /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 0905d9f31ead399d054c5d2a2c353e690f5c8daa (diff) | |
download | llvm-2b2bfdb474da0bf070a8e5a06f704a37a06500d6.zip llvm-2b2bfdb474da0bf070a8e5a06f704a37a06500d6.tar.gz llvm-2b2bfdb474da0bf070a8e5a06f704a37a06500d6.tar.bz2 |
[NFC] Add the stats for load/store cluster
We have the stats for MacroFusion but miss it for load/store cluster.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index fe4ceb2..a8ccf26 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -18,6 +18,7 @@ #include "llvm/ADT/PriorityQueue.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" +#include "llvm/ADT/Statistic.h" #include "llvm/ADT/iterator_range.h" #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/CodeGen/LiveInterval.h" @@ -73,6 +74,8 @@ using namespace llvm; #define DEBUG_TYPE "machine-scheduler" +STATISTIC(NumClustered, "Number of load/store pairs clustered"); + namespace llvm { cl::opt<bool> ForceTopDown("misched-topdown", cl::Hidden, @@ -1623,6 +1626,7 @@ void BaseMemOpClusterMutation::clusterNeighboringMemOps( LLVM_DEBUG(dbgs() << "Cluster ld/st SU(" << SUa->NodeNum << ") - SU(" << SUb->NodeNum << ")\n"); + ++NumClustered; if (IsLoad) { // Copy successor edges from SUa to SUb. Interleaving computation |