summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/Reassociate.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-19 21:40:18 +0000
committerChris Lattner <sabre@nondot.org>2006-12-19 21:40:18 +0000
commit0e5f499638c8d277b9dc4a4385712177c53b5681 (patch)
tree807238536efcc3de8e754e1eec574fae52bdd05b /lib/Transforms/Scalar/Reassociate.cpp
parent193c88cb56d872a26fc32a43ccf9204c475984f3 (diff)
downloadllvm-0e5f499638c8d277b9dc4a4385712177c53b5681.tar.gz
llvm-0e5f499638c8d277b9dc4a4385712177c53b5681.tar.bz2
llvm-0e5f499638c8d277b9dc4a4385712177c53b5681.tar.xz
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/Reassociate.cpp')
-rw-r--r--lib/Transforms/Scalar/Reassociate.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp
index 196cd3854a..69805f86ba 100644
--- a/lib/Transforms/Scalar/Reassociate.cpp
+++ b/lib/Transforms/Scalar/Reassociate.cpp
@@ -35,13 +35,12 @@
#include <algorithm>
using namespace llvm;
-namespace {
- Statistic NumLinear ("reassociate","Number of insts linearized");
- Statistic NumChanged("reassociate","Number of insts reassociated");
- Statistic NumSwapped("reassociate","Number of insts with operands swapped");
- Statistic NumAnnihil("reassociate","Number of expr tree annihilated");
- Statistic NumFactor ("reassociate","Number of multiplies factored");
+STATISTIC(NumLinear , "Number of insts linearized");
+STATISTIC(NumChanged, "Number of insts reassociated");
+STATISTIC(NumAnnihil, "Number of expr tree annihilated");
+STATISTIC(NumFactor , "Number of multiplies factored");
+namespace {
struct ValueEntry {
unsigned Rank;
Value *Op;