summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/CorrelatedExprs.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/CorrelatedExprs.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/CorrelatedExprs.cpp')
-rw-r--r--lib/Transforms/Scalar/CorrelatedExprs.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/CorrelatedExprs.cpp b/lib/Transforms/Scalar/CorrelatedExprs.cpp
index a796ff742e..7ab999f963 100644
--- a/lib/Transforms/Scalar/CorrelatedExprs.cpp
+++ b/lib/Transforms/Scalar/CorrelatedExprs.cpp
@@ -26,6 +26,7 @@
//
//===----------------------------------------------------------------------===//
+#define DEBUG_TYPE "cee"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Constants.h"
#include "llvm/Pass.h"
@@ -44,11 +45,11 @@
#include <algorithm>
using namespace llvm;
-namespace {
- Statistic NumSetCCRemoved("cee", "Number of setcc instruction eliminated");
- Statistic NumOperandsCann("cee", "Number of operands canonicalized");
- Statistic BranchRevectors("cee", "Number of branches revectored");
+STATISTIC(NumSetCCRemoved, "Number of setcc instruction eliminated");
+STATISTIC(NumOperandsCann, "Number of operands canonicalized");
+STATISTIC(BranchRevectors, "Number of branches revectored");
+namespace {
class ValueInfo;
class Relation {
Value *Val; // Relation to what value?