[llvm-commits] [llvm] r127007 - /llvm/trunk/lib/CodeGen/SlotIndexes.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Mar 4 10:08:29 PST 2011
Author: stoklund
Date: Fri Mar 4 12:08:29 2011
New Revision: 127007
URL: http://llvm.org/viewvc/llvm-project?rev=127007&view=rev
Log:
Add SlotIndex statistics.
Modified:
llvm/trunk/lib/CodeGen/SlotIndexes.cpp
Modified: llvm/trunk/lib/CodeGen/SlotIndexes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SlotIndexes.cpp?rev=127007&r1=127006&r2=127007&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SlotIndexes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SlotIndexes.cpp Fri Mar 4 12:08:29 2011
@@ -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 @@
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 @@
// 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;
More information about the llvm-commits
mailing list