summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-19 22:17:40 +0000
committerChris Lattner <sabre@nondot.org>2006-12-19 22:17:40 +0000
commit45f966d80f8d5c32b8e16a0a11073ab118948341 (patch)
tree2ce394af6abcca8a62849db5c629ca2bad019cf7 /llvm/lib/Transforms/Utils/LoopSimplify.cpp
parent1631bcb1d43425ed03624eaa47cf4f53fe3832fd (diff)
downloadbcm5719-llvm-45f966d80f8d5c32b8e16a0a11073ab118948341.tar.gz
bcm5719-llvm-45f966d80f8d5c32b8e16a0a11073ab118948341.zip
switch more statistics over to STATISTIC, eliminating static ctors. Also,
delete some dead ones. llvm-svn: 32694
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopSimplify.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
index 7796022e892..ab850d58fc6 100644
--- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp
@@ -32,6 +32,7 @@
//
//===----------------------------------------------------------------------===//
+#define DEBUG_TYPE "loopsimplify"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Constant.h"
#include "llvm/Instructions.h"
@@ -48,12 +49,10 @@
#include "llvm/ADT/DepthFirstIterator.h"
using namespace llvm;
-namespace {
- Statistic
- NumInserted("loopsimplify", "Number of pre-header or exit blocks inserted");
- Statistic
- NumNested("loopsimplify", "Number of nested loops split out");
+STATISTIC(NumInserted, "Number of pre-header or exit blocks inserted");
+STATISTIC(NumNested , "Number of nested loops split out");
+namespace {
struct VISIBILITY_HIDDEN LoopSimplify : public FunctionPass {
// AA - If we have an alias analysis object to update, this is it, otherwise
// this is null.
OpenPOWER on IntegriCloud