summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/Reassociate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Reassociate.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/Reassociate.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp
index 196cd3854a0..69805f86bae 100644
--- a/llvm/lib/Transforms/Scalar/Reassociate.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud