[llvm-commits] CVS: llvm/lib/Analysis/InstCount.cpp ScalarEvolution.cpp
Chris Lattner
sabre at nondot.org
Wed Dec 6 09:47:30 PST 2006
Changes in directory llvm/lib/Analysis:
InstCount.cpp updated: 1.16 -> 1.17
ScalarEvolution.cpp updated: 1.65 -> 1.66
---
Log message:
Detemplatize the Statistic class. The only type it is instantiated with
is 'unsigned'.
---
Diffs of the changes: (+10 -10)
InstCount.cpp | 10 +++++-----
ScalarEvolution.cpp | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
Index: llvm/lib/Analysis/InstCount.cpp
diff -u llvm/lib/Analysis/InstCount.cpp:1.16 llvm/lib/Analysis/InstCount.cpp:1.17
--- llvm/lib/Analysis/InstCount.cpp:1.16 Tue Nov 28 16:46:12 2006
+++ llvm/lib/Analysis/InstCount.cpp Wed Dec 6 11:46:31 2006
@@ -21,13 +21,13 @@
using namespace llvm;
namespace {
- Statistic<> TotalInsts ("instcount", "Number of instructions (of all types)");
- Statistic<> TotalBlocks("instcount", "Number of basic blocks");
- Statistic<> TotalFuncs ("instcount", "Number of non-external functions");
- Statistic<> TotalMemInst("instcount", "Number of memory instructions");
+ Statistic TotalInsts ("instcount", "Number of instructions (of all types)");
+ Statistic TotalBlocks("instcount", "Number of basic blocks");
+ Statistic TotalFuncs ("instcount", "Number of non-external functions");
+ Statistic TotalMemInst("instcount", "Number of memory instructions");
#define HANDLE_INST(N, OPCODE, CLASS) \
- Statistic<> Num##OPCODE##Inst("instcount", "Number of " #OPCODE " insts");
+ Statistic Num##OPCODE##Inst("instcount", "Number of " #OPCODE " insts");
#include "llvm/Instruction.def"
Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.65 llvm/lib/Analysis/ScalarEvolution.cpp:1.66
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.65 Tue Dec 5 16:39:58 2006
+++ llvm/lib/Analysis/ScalarEvolution.cpp Wed Dec 6 11:46:31 2006
@@ -85,20 +85,20 @@
RegisterPass<ScalarEvolution>
R("scalar-evolution", "Scalar Evolution Analysis");
- Statistic<>
+ Statistic
NumBruteForceEvaluations("scalar-evolution",
"Number of brute force evaluations needed to "
"calculate high-order polynomial exit values");
- Statistic<>
+ Statistic
NumArrayLenItCounts("scalar-evolution",
"Number of trip counts computed with array length");
- Statistic<>
+ Statistic
NumTripCountsComputed("scalar-evolution",
"Number of loops with predictable loop counts");
- Statistic<>
+ Statistic
NumTripCountsNotComputed("scalar-evolution",
"Number of loops without predictable loop counts");
- Statistic<>
+ Statistic
NumBruteForceTripCountsComputed("scalar-evolution",
"Number of loops with trip counts computed by force");
More information about the llvm-commits
mailing list