[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ADCE.cpp BasicBlockPlacement.cpp CondPropagate.cpp ConstantProp.cpp CorrelatedExprs.cpp DCE.cpp DeadStoreElimination.cpp GCSE.cpp IndVarSimplify.cpp InstructionCombining.cpp LICM.cpp LoopStrengthReduce.cpp LoopUnroll.cpp LoopUnswitch.cpp PredicateSimplifier.cpp Reassociate.cpp Reg2Mem.cpp SCCP.cpp ScalarReplAggregates.cpp SimplifyCFG.cpp TailDuplication.cpp TailRecursionElimination.cpp
Chris Lattner
sabre at nondot.org
Wed Dec 6 09:47:32 PST 2006
Changes in directory llvm/lib/Transforms/Scalar:
ADCE.cpp updated: 1.99 -> 1.100
BasicBlockPlacement.cpp updated: 1.6 -> 1.7
CondPropagate.cpp updated: 1.9 -> 1.10
ConstantProp.cpp updated: 1.52 -> 1.53
CorrelatedExprs.cpp updated: 1.38 -> 1.39
DCE.cpp updated: 1.59 -> 1.60
DeadStoreElimination.cpp updated: 1.14 -> 1.15
GCSE.cpp updated: 1.48 -> 1.49
IndVarSimplify.cpp updated: 1.96 -> 1.97
InstructionCombining.cpp updated: 1.559 -> 1.560
LICM.cpp updated: 1.81 -> 1.82
LoopStrengthReduce.cpp updated: 1.96 -> 1.97
LoopUnroll.cpp updated: 1.31 -> 1.32
LoopUnswitch.cpp updated: 1.50 -> 1.51
PredicateSimplifier.cpp updated: 1.35 -> 1.36
Reassociate.cpp updated: 1.66 -> 1.67
Reg2Mem.cpp updated: 1.7 -> 1.8
SCCP.cpp updated: 1.138 -> 1.139
ScalarReplAggregates.cpp updated: 1.51 -> 1.52
SimplifyCFG.cpp updated: 1.15 -> 1.16
TailDuplication.cpp updated: 1.34 -> 1.35
TailRecursionElimination.cpp updated: 1.25 -> 1.26
---
Log message:
Detemplatize the Statistic class. The only type it is instantiated with
is 'unsigned'.
---
Diffs of the changes: (+66 -66)
ADCE.cpp | 6 +++---
BasicBlockPlacement.cpp | 2 +-
CondPropagate.cpp | 4 ++--
ConstantProp.cpp | 2 +-
CorrelatedExprs.cpp | 6 +++---
DCE.cpp | 4 ++--
DeadStoreElimination.cpp | 4 ++--
GCSE.cpp | 10 +++++-----
IndVarSimplify.cpp | 10 +++++-----
InstructionCombining.cpp | 10 +++++-----
LICM.cpp | 10 +++++-----
LoopStrengthReduce.cpp | 6 +++---
LoopUnroll.cpp | 2 +-
LoopUnswitch.cpp | 10 +++++-----
PredicateSimplifier.cpp | 6 +++---
Reassociate.cpp | 10 +++++-----
Reg2Mem.cpp | 2 +-
SCCP.cpp | 12 ++++++------
ScalarReplAggregates.cpp | 6 +++---
SimplifyCFG.cpp | 2 +-
TailDuplication.cpp | 4 ++--
TailRecursionElimination.cpp | 4 ++--
22 files changed, 66 insertions(+), 66 deletions(-)
Index: llvm/lib/Transforms/Scalar/ADCE.cpp
diff -u llvm/lib/Transforms/Scalar/ADCE.cpp:1.99 llvm/lib/Transforms/Scalar/ADCE.cpp:1.100
--- llvm/lib/Transforms/Scalar/ADCE.cpp:1.99 Sun Nov 26 03:46:52 2006
+++ llvm/lib/Transforms/Scalar/ADCE.cpp Wed Dec 6 11:46:32 2006
@@ -30,9 +30,9 @@
using namespace llvm;
namespace {
- Statistic<> NumBlockRemoved("adce", "Number of basic blocks removed");
- Statistic<> NumInstRemoved ("adce", "Number of instructions removed");
- Statistic<> NumCallRemoved ("adce", "Number of calls and invokes removed");
+ Statistic NumBlockRemoved("adce", "Number of basic blocks removed");
+ Statistic NumInstRemoved ("adce", "Number of instructions removed");
+ Statistic NumCallRemoved ("adce", "Number of calls and invokes removed");
//===----------------------------------------------------------------------===//
// ADCE Class
Index: llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp
diff -u llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.6 llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.7
--- llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.6 Sun Aug 27 17:42:52 2006
+++ llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp Wed Dec 6 11:46:32 2006
@@ -36,7 +36,7 @@
using namespace llvm;
namespace {
- Statistic<> NumMoved("block-placement", "Number of basic blocks moved");
+ Statistic NumMoved("block-placement", "Number of basic blocks moved");
struct BlockPlacement : public FunctionPass {
virtual bool runOnFunction(Function &F);
Index: llvm/lib/Transforms/Scalar/CondPropagate.cpp
diff -u llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.9 llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.10
--- llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.9 Sun Nov 26 03:46:52 2006
+++ llvm/lib/Transforms/Scalar/CondPropagate.cpp Wed Dec 6 11:46:32 2006
@@ -26,9 +26,9 @@
using namespace llvm;
namespace {
- Statistic<>
+ Statistic
NumBrThread("condprop", "Number of CFG edges threaded through branches");
- Statistic<>
+ Statistic
NumSwThread("condprop", "Number of CFG edges threaded through switches");
struct CondProp : public FunctionPass {
Index: llvm/lib/Transforms/Scalar/ConstantProp.cpp
diff -u llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.52 llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.53
--- llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.52 Sun Aug 27 17:42:52 2006
+++ llvm/lib/Transforms/Scalar/ConstantProp.cpp Wed Dec 6 11:46:32 2006
@@ -29,7 +29,7 @@
using namespace llvm;
namespace {
- Statistic<> NumInstKilled("constprop", "Number of instructions killed");
+ Statistic NumInstKilled("constprop", "Number of instructions killed");
struct ConstantPropagation : public FunctionPass {
bool runOnFunction(Function &F);
Index: llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
diff -u llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.38 llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.39
--- llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.38 Thu Nov 2 19:34:58 2006
+++ llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp Wed Dec 6 11:46:32 2006
@@ -46,9 +46,9 @@
using namespace llvm;
namespace {
- Statistic<> NumSetCCRemoved("cee", "Number of setcc instruction eliminated");
- Statistic<> NumOperandsCann("cee", "Number of operands canonicalized");
- Statistic<> BranchRevectors("cee", "Number of branches revectored");
+ Statistic NumSetCCRemoved("cee", "Number of setcc instruction eliminated");
+ Statistic NumOperandsCann("cee", "Number of operands canonicalized");
+ Statistic BranchRevectors("cee", "Number of branches revectored");
class ValueInfo;
class Relation {
Index: llvm/lib/Transforms/Scalar/DCE.cpp
diff -u llvm/lib/Transforms/Scalar/DCE.cpp:1.59 llvm/lib/Transforms/Scalar/DCE.cpp:1.60
--- llvm/lib/Transforms/Scalar/DCE.cpp:1.59 Sun Aug 27 17:42:52 2006
+++ llvm/lib/Transforms/Scalar/DCE.cpp Wed Dec 6 11:46:32 2006
@@ -26,8 +26,8 @@
using namespace llvm;
namespace {
- Statistic<> DIEEliminated("die", "Number of insts removed");
- Statistic<> DCEEliminated("dce", "Number of insts removed");
+ Statistic DIEEliminated("die", "Number of insts removed");
+ Statistic DCEEliminated("dce", "Number of insts removed");
//===--------------------------------------------------------------------===//
// DeadInstElimination pass implementation
Index: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
diff -u llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.14 llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.15
--- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.14 Sun Aug 27 17:42:52 2006
+++ llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp Wed Dec 6 11:46:32 2006
@@ -28,8 +28,8 @@
using namespace llvm;
namespace {
- Statistic<> NumStores("dse", "Number of stores deleted");
- Statistic<> NumOther ("dse", "Number of other instrs removed");
+ Statistic NumStores("dse", "Number of stores deleted");
+ Statistic NumOther ("dse", "Number of other instrs removed");
struct DSE : public FunctionPass {
Index: llvm/lib/Transforms/Scalar/GCSE.cpp
diff -u llvm/lib/Transforms/Scalar/GCSE.cpp:1.48 llvm/lib/Transforms/Scalar/GCSE.cpp:1.49
--- llvm/lib/Transforms/Scalar/GCSE.cpp:1.48 Sun Aug 27 17:42:52 2006
+++ llvm/lib/Transforms/Scalar/GCSE.cpp Wed Dec 6 11:46:32 2006
@@ -28,12 +28,12 @@
using namespace llvm;
namespace {
- Statistic<> NumInstRemoved("gcse", "Number of instructions removed");
- Statistic<> NumLoadRemoved("gcse", "Number of loads removed");
- Statistic<> NumCallRemoved("gcse", "Number of calls removed");
- Statistic<> NumNonInsts ("gcse", "Number of instructions removed due "
+ Statistic NumInstRemoved("gcse", "Number of instructions removed");
+ Statistic NumLoadRemoved("gcse", "Number of loads removed");
+ Statistic NumCallRemoved("gcse", "Number of calls removed");
+ Statistic NumNonInsts ("gcse", "Number of instructions removed due "
"to non-instruction values");
- Statistic<> NumArgsRepl ("gcse", "Number of function arguments replaced "
+ Statistic NumArgsRepl ("gcse", "Number of function arguments replaced "
"with constant values");
struct GCSE : public FunctionPass {
Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.96 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.97
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.96 Sun Nov 26 19:05:10 2006
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp Wed Dec 6 11:46:32 2006
@@ -52,11 +52,11 @@
using namespace llvm;
namespace {
- Statistic<> NumRemoved ("indvars", "Number of aux indvars removed");
- Statistic<> NumPointer ("indvars", "Number of pointer indvars promoted");
- Statistic<> NumInserted("indvars", "Number of canonical indvars added");
- Statistic<> NumReplaced("indvars", "Number of exit values replaced");
- Statistic<> NumLFTR ("indvars", "Number of loop exit tests replaced");
+ Statistic NumRemoved ("indvars", "Number of aux indvars removed");
+ Statistic NumPointer ("indvars", "Number of pointer indvars promoted");
+ Statistic NumInserted("indvars", "Number of canonical indvars added");
+ Statistic NumReplaced("indvars", "Number of exit values replaced");
+ Statistic NumLFTR ("indvars", "Number of loop exit tests replaced");
class IndVarSimplify : public FunctionPass {
LoopInfo *LI;
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.559 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.560
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.559 Mon Dec 4 19:26:29 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Wed Dec 6 11:46:32 2006
@@ -56,11 +56,11 @@
using namespace llvm::PatternMatch;
namespace {
- Statistic<> NumCombined ("instcombine", "Number of insts combined");
- Statistic<> NumConstProp("instcombine", "Number of constant folds");
- Statistic<> NumDeadInst ("instcombine", "Number of dead inst eliminated");
- Statistic<> NumDeadStore("instcombine", "Number of dead stores eliminated");
- Statistic<> NumSunkInst ("instcombine", "Number of instructions sunk");
+ Statistic NumCombined ("instcombine", "Number of insts combined");
+ Statistic NumConstProp("instcombine", "Number of constant folds");
+ Statistic NumDeadInst ("instcombine", "Number of dead inst eliminated");
+ Statistic NumDeadStore("instcombine", "Number of dead stores eliminated");
+ Statistic NumSunkInst ("instcombine", "Number of instructions sunk");
class VISIBILITY_HIDDEN InstCombiner
: public FunctionPass,
Index: llvm/lib/Transforms/Scalar/LICM.cpp
diff -u llvm/lib/Transforms/Scalar/LICM.cpp:1.81 llvm/lib/Transforms/Scalar/LICM.cpp:1.82
--- llvm/lib/Transforms/Scalar/LICM.cpp:1.81 Sun Nov 26 19:05:10 2006
+++ llvm/lib/Transforms/Scalar/LICM.cpp Wed Dec 6 11:46:33 2006
@@ -54,11 +54,11 @@
DisablePromotion("disable-licm-promotion", cl::Hidden,
cl::desc("Disable memory promotion in LICM pass"));
- Statistic<> NumSunk("licm", "Number of instructions sunk out of loop");
- Statistic<> NumHoisted("licm", "Number of instructions hoisted out of loop");
- Statistic<> NumMovedLoads("licm", "Number of load insts hoisted or sunk");
- Statistic<> NumMovedCalls("licm", "Number of call insts hoisted or sunk");
- Statistic<> NumPromoted("licm",
+ Statistic NumSunk("licm", "Number of instructions sunk out of loop");
+ Statistic NumHoisted("licm", "Number of instructions hoisted out of loop");
+ Statistic NumMovedLoads("licm", "Number of load insts hoisted or sunk");
+ Statistic NumMovedCalls("licm", "Number of call insts hoisted or sunk");
+ Statistic NumPromoted("licm",
"Number of memory locations promoted to registers");
struct LICM : public FunctionPass {
Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.96 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.97
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.96 Sun Nov 26 19:05:10 2006
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp Wed Dec 6 11:46:33 2006
@@ -38,9 +38,9 @@
using namespace llvm;
namespace {
- Statistic<> NumReduced ("loop-reduce", "Number of GEPs strength reduced");
- Statistic<> NumInserted("loop-reduce", "Number of PHIs inserted");
- Statistic<> NumVariable("loop-reduce","Number of PHIs with variable strides");
+ Statistic NumReduced ("loop-reduce", "Number of GEPs strength reduced");
+ Statistic NumInserted("loop-reduce", "Number of PHIs inserted");
+ Statistic NumVariable("loop-reduce","Number of PHIs with variable strides");
/// IVStrideUse - Keep track of one use of a strided induction variable, where
/// the stride is stored externally. The Offset member keeps track of the
Index: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.31 llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.32
--- llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.31 Sun Nov 26 03:46:52 2006
+++ llvm/lib/Transforms/Scalar/LoopUnroll.cpp Wed Dec 6 11:46:33 2006
@@ -37,7 +37,7 @@
using namespace llvm;
namespace {
- Statistic<> NumUnrolled("loop-unroll", "Number of loops completely unrolled");
+ Statistic NumUnrolled("loop-unroll", "Number of loops completely unrolled");
cl::opt<unsigned>
UnrollThreshold("unroll-threshold", cl::init(100), cl::Hidden,
Index: llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.50 llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.51
--- llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.50 Sun Nov 26 03:46:52 2006
+++ llvm/lib/Transforms/Scalar/LoopUnswitch.cpp Wed Dec 6 11:46:33 2006
@@ -44,12 +44,12 @@
using namespace llvm;
namespace {
- Statistic<> NumBranches("loop-unswitch", "Number of branches unswitched");
- Statistic<> NumSwitches("loop-unswitch", "Number of switches unswitched");
- Statistic<> NumSelects ("loop-unswitch", "Number of selects unswitched");
- Statistic<> NumTrivial ("loop-unswitch",
+ Statistic NumBranches("loop-unswitch", "Number of branches unswitched");
+ Statistic NumSwitches("loop-unswitch", "Number of switches unswitched");
+ Statistic NumSelects ("loop-unswitch", "Number of selects unswitched");
+ Statistic NumTrivial ("loop-unswitch",
"Number of unswitches that are trivial");
- Statistic<> NumSimplify("loop-unswitch",
+ Statistic NumSimplify("loop-unswitch",
"Number of simplifications of unswitched code");
cl::opt<unsigned>
Threshold("loop-unswitch-threshold", cl::desc("Max loop size to unswitch"),
Index: llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp
diff -u llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.35 llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.36
--- llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.35 Fri Dec 1 20:22:01 2006
+++ llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp Wed Dec 6 11:46:33 2006
@@ -93,11 +93,11 @@
using namespace llvm;
namespace {
- Statistic<>
+ Statistic
NumVarsReplaced("predsimplify", "Number of argument substitutions");
- Statistic<>
+ Statistic
NumInstruction("predsimplify", "Number of instructions removed");
- Statistic<>
+ Statistic
NumSimple("predsimplify", "Number of simple replacements");
/// The InequalityGraph stores the relationships between values.
Index: llvm/lib/Transforms/Scalar/Reassociate.cpp
diff -u llvm/lib/Transforms/Scalar/Reassociate.cpp:1.66 llvm/lib/Transforms/Scalar/Reassociate.cpp:1.67
--- llvm/lib/Transforms/Scalar/Reassociate.cpp:1.66 Wed Dec 6 00:16:21 2006
+++ llvm/lib/Transforms/Scalar/Reassociate.cpp Wed Dec 6 11:46:33 2006
@@ -37,11 +37,11 @@
using namespace llvm;
namespace {
- Statistic<> NumLinear ("reassociate","Number of insts linearized");
- Statistic<> NumChanged("reassociate","Number of insts reassociated");
- Statistic<> NumSwapped("reassociate","Number of insts with operands swapped");
- Statistic<> NumAnnihil("reassociate","Number of expr tree annihilated");
- Statistic<> NumFactor ("reassociate","Number of multiplies factored");
+ Statistic NumLinear ("reassociate","Number of insts linearized");
+ Statistic NumChanged("reassociate","Number of insts reassociated");
+ Statistic NumSwapped("reassociate","Number of insts with operands swapped");
+ Statistic NumAnnihil("reassociate","Number of expr tree annihilated");
+ Statistic NumFactor ("reassociate","Number of multiplies factored");
struct ValueEntry {
unsigned Rank;
Index: llvm/lib/Transforms/Scalar/Reg2Mem.cpp
diff -u llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.7 llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.8
--- llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.7 Sun Aug 27 17:42:52 2006
+++ llvm/lib/Transforms/Scalar/Reg2Mem.cpp Wed Dec 6 11:46:33 2006
@@ -30,7 +30,7 @@
using namespace llvm;
namespace {
- Statistic<> NumDemoted("reg2mem", "Number of registers demoted");
+ Statistic NumDemoted("reg2mem", "Number of registers demoted");
struct RegToMem : public FunctionPass {
Index: llvm/lib/Transforms/Scalar/SCCP.cpp
diff -u llvm/lib/Transforms/Scalar/SCCP.cpp:1.138 llvm/lib/Transforms/Scalar/SCCP.cpp:1.139
--- llvm/lib/Transforms/Scalar/SCCP.cpp:1.138 Mon Dec 4 17:54:59 2006
+++ llvm/lib/Transforms/Scalar/SCCP.cpp Wed Dec 6 11:46:33 2006
@@ -1080,8 +1080,8 @@
namespace {
- Statistic<> NumInstRemoved("sccp", "Number of instructions removed");
- Statistic<> NumDeadBlocks ("sccp", "Number of basic blocks unreachable");
+ Statistic NumInstRemoved("sccp", "Number of instructions removed");
+ Statistic NumDeadBlocks ("sccp", "Number of basic blocks unreachable");
//===--------------------------------------------------------------------===//
//
@@ -1191,11 +1191,11 @@
}
namespace {
- Statistic<> IPNumInstRemoved("ipsccp", "Number of instructions removed");
- Statistic<> IPNumDeadBlocks ("ipsccp", "Number of basic blocks unreachable");
- Statistic<> IPNumArgsElimed ("ipsccp",
+ 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",
+ Statistic IPNumGlobalConst("ipsccp",
"Number of globals found to be constant");
//===--------------------------------------------------------------------===//
Index: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff -u llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.51 llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.52
--- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.51 Sun Nov 26 19:05:10 2006
+++ llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp Wed Dec 6 11:46:33 2006
@@ -37,9 +37,9 @@
using namespace llvm;
namespace {
- Statistic<> NumReplaced("scalarrepl", "Number of allocas broken up");
- Statistic<> NumPromoted("scalarrepl", "Number of allocas promoted");
- Statistic<> NumConverted("scalarrepl",
+ Statistic NumReplaced("scalarrepl", "Number of allocas broken up");
+ Statistic NumPromoted("scalarrepl", "Number of allocas promoted");
+ Statistic NumConverted("scalarrepl",
"Number of aggregates converted to scalar");
struct VISIBILITY_HIDDEN SROA : public FunctionPass {
Index: llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.15 llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.16
--- llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.15 Sun Aug 27 17:42:52 2006
+++ llvm/lib/Transforms/Scalar/SimplifyCFG.cpp Wed Dec 6 11:46:33 2006
@@ -30,7 +30,7 @@
using namespace llvm;
namespace {
- Statistic<> NumSimpl("cfgsimplify", "Number of blocks simplified");
+ Statistic NumSimpl("cfgsimplify", "Number of blocks simplified");
struct CFGSimplifyPass : public FunctionPass {
virtual bool runOnFunction(Function &F);
Index: llvm/lib/Transforms/Scalar/TailDuplication.cpp
diff -u llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.34 llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.35
--- llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.34 Sun Nov 26 03:46:52 2006
+++ llvm/lib/Transforms/Scalar/TailDuplication.cpp Wed Dec 6 11:46:33 2006
@@ -37,9 +37,9 @@
cl::opt<unsigned>
Threshold("taildup-threshold", cl::desc("Max block size to tail duplicate"),
cl::init(6), cl::Hidden);
- Statistic<> NumEliminated("tailduplicate",
+ Statistic NumEliminated("tailduplicate",
"Number of unconditional branches eliminated");
- Statistic<> NumPHINodes("tailduplicate", "Number of phi nodes inserted");
+ Statistic NumPHINodes("tailduplicate", "Number of phi nodes inserted");
class TailDup : public FunctionPass {
bool runOnFunction(Function &F);
Index: llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
diff -u llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.25 llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.26
--- llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.25 Thu Nov 2 14:25:50 2006
+++ llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp Wed Dec 6 11:46:33 2006
@@ -61,8 +61,8 @@
using namespace llvm;
namespace {
- Statistic<> NumEliminated("tailcallelim", "Number of tail calls removed");
- Statistic<> NumAccumAdded("tailcallelim","Number of accumulators introduced");
+ Statistic NumEliminated("tailcallelim", "Number of tail calls removed");
+ Statistic NumAccumAdded("tailcallelim","Number of accumulators introduced");
struct TailCallElim : public FunctionPass {
virtual bool runOnFunction(Function &F);
More information about the llvm-commits
mailing list