[llvm-commits] CVS: llvm/lib/Transforms/LevelRaise.cpp

Chris Lattner sabre at nondot.org
Tue Dec 19 14:17:59 PST 2006



Changes in directory llvm/lib/Transforms:

LevelRaise.cpp updated: 1.115 -> 1.116
---
Log message:

switch more statistics over to STATISTIC, eliminating static ctors.  Also,
delete some dead ones.


---
Diffs of the changes:  (+7 -12)

 LevelRaise.cpp |   19 +++++++------------
 1 files changed, 7 insertions(+), 12 deletions(-)


Index: llvm/lib/Transforms/LevelRaise.cpp
diff -u llvm/lib/Transforms/LevelRaise.cpp:1.115 llvm/lib/Transforms/LevelRaise.cpp:1.116
--- llvm/lib/Transforms/LevelRaise.cpp:1.115	Tue Dec 12 18:50:17 2006
+++ llvm/lib/Transforms/LevelRaise.cpp	Tue Dec 19 16:17:40 2006
@@ -13,6 +13,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#define DEBUG_TYPE "raise"
 #include "llvm/Transforms/Scalar.h"
 #include "llvm/Transforms/Utils/Local.h"
 #include "TransformInternals.h"
@@ -34,23 +35,17 @@
 StartInst("raise-start-inst", cl::Hidden, cl::value_desc("inst name"),
        cl::desc("Start raise pass at the instruction with the specified name"));
 
-static Statistic
-NumLoadStorePeepholes("raise", "Number of load/store peepholes");
+STATISTIC(NumLoadStorePeepholes, "Number of load/store peepholes");
 
-static Statistic
-NumGEPInstFormed("raise", "Number of other getelementptr's formed");
+STATISTIC(NumGEPInstFormed, "Number of other getelementptr's formed");
 
-static Statistic
-NumExprTreesConv("raise", "Number of expression trees converted");
+STATISTIC(NumExprTreesConv, "Number of expression trees converted");
 
-static Statistic
-NumCastOfCast("raise", "Number of cast-of-self removed");
+STATISTIC(NumCastOfCast, "Number of cast-of-self removed");
 
-static Statistic
-NumDCEorCP("raise", "Number of insts DCEd or constprop'd");
+STATISTIC(NumDCEorCP, "Number of insts DCEd or constprop'd");
 
-static Statistic
-NumVarargCallChanges("raise", "Number of vararg call peepholes");
+STATISTIC(NumVarargCallChanges, "Number of vararg call peepholes");
 
 #define PRINT_PEEPHOLE(ID, NUM, I)            \
   DOUT << "Inst P/H " << ID << "[" << NUM << "] " << I






More information about the llvm-commits mailing list