diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:17:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:17:40 +0000 |
commit | d216e8ba60494caacf919cbf5fef110d48f0d162 (patch) | |
tree | a6e2c243cbac1f503451d51a705d0aa4d0ea012a /lib/Transforms/LevelRaise.cpp | |
parent | 86453c52ba02e743d29c08456e51006500041456 (diff) |
switch more statistics over to STATISTIC, eliminating static ctors. Also,
delete some dead ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/LevelRaise.cpp')
-rw-r--r-- | lib/Transforms/LevelRaise.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp index c5ac8c98b9..9930d1bdf8 100644 --- a/lib/Transforms/LevelRaise.cpp +++ b/lib/Transforms/LevelRaise.cpp @@ -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 @@ static cl::opt<std::string> 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 |