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/LoopStrengthReduce.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/LoopStrengthReduce.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 9426aa1a69..eb58b9e052 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -37,11 +37,11 @@ #include <set> using namespace llvm; -namespace { - Statistic NumReduced ("loop-reduce", "Number of GEPs strength reduced"); - Statistic NumInserted("loop-reduce", "Number of PHIs inserted"); - Statistic NumVariable("loop-reduce","Number of PHIs with variable strides"); +STATISTIC(NumReduced , "Number of GEPs strength reduced"); +STATISTIC(NumInserted, "Number of PHIs inserted"); +STATISTIC(NumVariable, "Number of PHIs with variable strides"); +namespace { /// IVStrideUse - Keep track of one use of a strided induction variable, where /// the stride is stored externally. The Offset member keeps track of the /// offset from the IV, User is the actual user of the operand, and 'Operand' |