diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:30:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:30:33 +0000 |
commit | 3b27d68c6af2582df0962557f1fe5c3f70f46e3f (patch) | |
tree | 7e277599fc296b352ed0dec8ea930c2f6c7f094a /lib/Analysis/ScalarEvolution.cpp | |
parent | cbfdd1f840630d8a899020e7fb05aa7fbdb52963 (diff) |
eliminate static ctors from Statistics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 6cc89bd801..7d03eb9a94 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -59,6 +59,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "scalar-evolution" #include "llvm/Analysis/ScalarEvolutionExpressions.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" @@ -82,32 +83,27 @@ #include <cmath> using namespace llvm; +STATISTIC(NumBruteForceEvaluations, + "Number of brute force evaluations needed to " + "calculate high-order polynomial exit values"); +STATISTIC(NumArrayLenItCounts, + "Number of trip counts computed with array length"); +STATISTIC(NumTripCountsComputed, + "Number of loops with predictable loop counts"); +STATISTIC(NumTripCountsNotComputed, + "Number of loops without predictable loop counts"); +STATISTIC(NumBruteForceTripCountsComputed, + "Number of loops with trip counts computed by force"); + +cl::opt<unsigned> +MaxBruteForceIterations("scalar-evolution-max-iterations", cl::ReallyHidden, + cl::desc("Maximum number of iterations SCEV will " + "symbolically execute a constant derived loop"), + cl::init(100)); + namespace { RegisterPass<ScalarEvolution> R("scalar-evolution", "Scalar Evolution Analysis"); - - Statistic - NumBruteForceEvaluations("scalar-evolution", - "Number of brute force evaluations needed to " - "calculate high-order polynomial exit values"); - Statistic - NumArrayLenItCounts("scalar-evolution", - "Number of trip counts computed with array length"); - Statistic - NumTripCountsComputed("scalar-evolution", - "Number of loops with predictable loop counts"); - Statistic - NumTripCountsNotComputed("scalar-evolution", - "Number of loops without predictable loop counts"); - Statistic - NumBruteForceTripCountsComputed("scalar-evolution", - "Number of loops with trip counts computed by force"); - - cl::opt<unsigned> - MaxBruteForceIterations("scalar-evolution-max-iterations", cl::ReallyHidden, - cl::desc("Maximum number of iterations SCEV will " - "symbolically execute a constant derived loop"), - cl::init(100)); } //===----------------------------------------------------------------------===// |