summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/TailDuplication.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
commit79a42ac9417680cb50d2e75e547385a080c596f7 (patch)
tree3c6ec6ffe81515978be4f7697fd6449f02677c71 /llvm/lib/Transforms/Scalar/TailDuplication.cpp
parent91fc1e57807f4429cc89f330de75f09d52dee4e3 (diff)
downloadbcm5719-llvm-79a42ac9417680cb50d2e75e547385a080c596f7.tar.gz
bcm5719-llvm-79a42ac9417680cb50d2e75e547385a080c596f7.zip
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. llvm-svn: 32690
Diffstat (limited to 'llvm/lib/Transforms/Scalar/TailDuplication.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/TailDuplication.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/TailDuplication.cpp b/llvm/lib/Transforms/Scalar/TailDuplication.cpp
index 6708418a678..97e8b186e52 100644
--- a/llvm/lib/Transforms/Scalar/TailDuplication.cpp
+++ b/llvm/lib/Transforms/Scalar/TailDuplication.cpp
@@ -33,14 +33,12 @@
#include "llvm/ADT/Statistic.h"
using namespace llvm;
+STATISTIC(NumEliminated, "Number of unconditional branches eliminated");
+
namespace {
cl::opt<unsigned>
Threshold("taildup-threshold", cl::desc("Max block size to tail duplicate"),
cl::init(6), cl::Hidden);
- Statistic NumEliminated("tailduplicate",
- "Number of unconditional branches eliminated");
- Statistic NumPHINodes("tailduplicate", "Number of phi nodes inserted");
-
class TailDup : public FunctionPass {
bool runOnFunction(Function &F);
private:
OpenPOWER on IntegriCloud