diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 21:40:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 21:40:18 +0000 |
commit | 0e5f499638c8d277b9dc4a4385712177c53b5681 (patch) | |
tree | 807238536efcc3de8e754e1eec574fae52bdd05b /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 193c88cb56d872a26fc32a43ccf9204c475984f3 (diff) |
Switch over Transforms/Scalar to use the STATISTIC macro. For each statistic
converted, we lose a static initializer. This also allows GCC to emit warnings
about unused statistics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index e17faa1d37..91759dc9b5 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -37,6 +37,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "indvars" #include "llvm/Transforms/Scalar.h" #include "llvm/BasicBlock.h" #include "llvm/Constants.h" @@ -51,13 +52,13 @@ #include "llvm/ADT/Statistic.h" using namespace llvm; -namespace { - Statistic NumRemoved ("indvars", "Number of aux indvars removed"); - Statistic NumPointer ("indvars", "Number of pointer indvars promoted"); - Statistic NumInserted("indvars", "Number of canonical indvars added"); - Statistic NumReplaced("indvars", "Number of exit values replaced"); - Statistic NumLFTR ("indvars", "Number of loop exit tests replaced"); +STATISTIC(NumRemoved , "Number of aux indvars removed"); +STATISTIC(NumPointer , "Number of pointer indvars promoted"); +STATISTIC(NumInserted, "Number of canonical indvars added"); +STATISTIC(NumReplaced, "Number of exit values replaced"); +STATISTIC(NumLFTR , "Number of loop exit tests replaced"); +namespace { class IndVarSimplify : public FunctionPass { LoopInfo *LI; ScalarEvolution *SE; |