diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-04 18:08:29 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-04 18:08:29 +0000 |
commit | 10c5f2dad5e11e2502ebc0b9e9ea56e449f42d16 (patch) | |
tree | 6bddc271872cdf5eeb48c7ce8d16836e50508e8b /lib/CodeGen/SlotIndexes.cpp | |
parent | fb69810a2b617d888b6ea7c6a69fee7364fe233b (diff) | |
download | llvm-10c5f2dad5e11e2502ebc0b9e9ea56e449f42d16.tar.gz llvm-10c5f2dad5e11e2502ebc0b9e9ea56e449f42d16.tar.bz2 llvm-10c5f2dad5e11e2502ebc0b9e9ea56e449f42d16.tar.xz |
Add SlotIndex statistics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127007 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SlotIndexes.cpp')
-rw-r--r-- | lib/CodeGen/SlotIndexes.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SlotIndexes.cpp b/lib/CodeGen/SlotIndexes.cpp index 73adb92101..a495d1fd83 100644 --- a/lib/CodeGen/SlotIndexes.cpp +++ b/lib/CodeGen/SlotIndexes.cpp @@ -10,6 +10,7 @@ #define DEBUG_TYPE "slotindexes" #include "llvm/CodeGen/SlotIndexes.h" +#include "llvm/ADT/Statistic.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" @@ -21,6 +22,8 @@ char SlotIndexes::ID = 0; INITIALIZE_PASS(SlotIndexes, "slotindexes", "Slot index numbering", false, false) +STATISTIC(NumRenumPasses, "Number of slot index renumber passes"); + void SlotIndexes::getAnalysisUsage(AnalysisUsage &au) const { au.setPreservesAll(); MachineFunctionPass::getAnalysisUsage(au); @@ -128,6 +131,7 @@ void SlotIndexes::renumberIndexes() { // pass during the initial numbering of the function if the new instructions // had been present. DEBUG(dbgs() << "\n*** Renumbering SlotIndexes ***\n"); + ++NumRenumPasses; unsigned index = 0; |