diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-12-19 21:40:18 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 21:40:18 +0000 |
| commit | 79a42ac9417680cb50d2e75e547385a080c596f7 (patch) | |
| tree | 3c6ec6ffe81515978be4f7697fd6449f02677c71 /llvm/lib/Transforms/Scalar/SCCP.cpp | |
| parent | 91fc1e57807f4429cc89f330de75f09d52dee4e3 (diff) | |
| download | bcm5719-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/SCCP.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 4f0607ef294..aa7c7833cfa 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -39,6 +39,16 @@ #include <set> using namespace llvm; +STATISTIC(NumInstRemoved, "Number of instructions removed"); +STATISTIC(NumDeadBlocks , "Number of basic blocks unreachable"); + +STATISTIC(IPNumInstRemoved, "Number ofinstructions removed by IPSCCP"); +STATISTIC(IPNumDeadBlocks , "Number of basic blocks unreachable by IPSCCP"); +STATISTIC(IPNumArgsElimed ,"Number of arguments constant propagated by IPSCCP"); +STATISTIC(IPNumGlobalConst, "Number of globals found to be constant by IPSCCP"); + + + // LatticeVal class - This class represents the different lattice values that an // instruction may occupy. It is a simple class with value semantics. // @@ -1081,9 +1091,6 @@ bool SCCPSolver::ResolveBranchesIn(Function &F) { namespace { - Statistic NumInstRemoved("sccp", "Number of instructions removed"); - Statistic NumDeadBlocks ("sccp", "Number of basic blocks unreachable"); - //===--------------------------------------------------------------------===// // /// SCCP Class - This class uses the SCCPSolver to implement a per-function @@ -1192,13 +1199,6 @@ bool SCCP::runOnFunction(Function &F) { } namespace { - Statistic IPNumInstRemoved("ipsccp", "Number of instructions removed"); - Statistic IPNumDeadBlocks ("ipsccp", "Number of basic blocks unreachable"); - Statistic IPNumArgsElimed ("ipsccp", - "Number of arguments constant propagated"); - Statistic IPNumGlobalConst("ipsccp", - "Number of globals found to be constant"); - //===--------------------------------------------------------------------===// // /// IPSCCP Class - This class implements interprocedural Sparse Conditional |

