Changes in directory llvm/lib/CodeGen:

BranchFolding.cpp updated: 1.37 -> 1.38
LiveIntervalAnalysis.cpp updated: 1.200 -> 1.201
PHIElimination.cpp updated: 1.51 -> 1.52
RegAllocLinearScan.cpp updated: 1.134 -> 1.135
RegAllocLocal.cpp updated: 1.96 -> 1.97
RegAllocSimple.cpp updated: 1.77 -> 1.78
TwoAddressInstructionPass.cpp updated: 1.42 -> 1.43
VirtRegMap.cpp updated: 1.81 -> 1.82
---
Log message:

Detemplatize the Statistic class.  The only type it is instantiated with
is 'unsigned'.



---
Diffs of the changes:  (+26 -26)

 BranchFolding.cpp             |    6 +++---
 LiveIntervalAnalysis.cpp      |   10 +++++-----
 PHIElimination.cpp            |    4 ++--
 RegAllocLinearScan.cpp        |    4 ++--
 RegAllocLocal.cpp             |    6 +++---
 RegAllocSimple.cpp            |    4 ++--
 TwoAddressInstructionPass.cpp |    6 +++---
 VirtRegMap.cpp                |   12 ++++++------
 8 files changed, 26 insertions(+), 26 deletions(-)


Index: llvm/lib/CodeGen/BranchFolding.cpp
diff -u llvm/lib/CodeGen/BranchFolding.cpp:1.37 
llvm/lib/CodeGen/BranchFolding.cpp:1.38
--- llvm/lib/CodeGen/BranchFolding.cpp:1.37     Sat Nov 18 16:25:39 2006
+++ llvm/lib/CodeGen/BranchFolding.cpp  Wed Dec  6 11:46:31 2006
@@ -30,9 +30,9 @@
 #include <algorithm>
 using namespace llvm;
 
-static Statistic<> NumDeadBlocks("branchfold", "Number of dead blocks 
removed");
-static Statistic<> NumBranchOpts("branchfold", "Number of branches optimized");
-static Statistic<> NumTailMerge ("branchfold", "Number of block tails merged");
+static Statistic NumDeadBlocks("branchfold", "Number of dead blocks removed");
+static Statistic NumBranchOpts("branchfold", "Number of branches optimized");
+static Statistic NumTailMerge ("branchfold", "Number of block tails merged");
 static cl::opt<bool> EnableTailMerge("enable-tail-merge", cl::Hidden);
 
 namespace {


Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.200 
llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.201
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.200     Fri Dec  1 20:22:01 2006
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp   Wed Dec  6 11:46:31 2006
@@ -39,19 +39,19 @@
 namespace {
   RegisterPass<LiveIntervals> X("liveintervals", "Live Interval Analysis");
 
-  static Statistic<> numIntervals
+  static Statistic numIntervals
   ("liveintervals", "Number of original intervals");
 
-  static Statistic<> numIntervalsAfter
+  static Statistic numIntervalsAfter
   ("liveintervals", "Number of intervals after coalescing");
 
-  static Statistic<> numJoins
+  static Statistic numJoins
   ("liveintervals", "Number of interval joins performed");
 
-  static Statistic<> numPeep
+  static Statistic numPeep
   ("liveintervals", "Number of identity moves eliminated after coalescing");
 
-  static Statistic<> numFolded
+  static Statistic numFolded
   ("liveintervals", "Number of loads/stores folded into instructions");
 
   static cl::opt<bool>


Index: llvm/lib/CodeGen/PHIElimination.cpp
diff -u llvm/lib/CodeGen/PHIElimination.cpp:1.51 
llvm/lib/CodeGen/PHIElimination.cpp:1.52
--- llvm/lib/CodeGen/PHIElimination.cpp:1.51    Thu Sep 28 02:10:24 2006
+++ llvm/lib/CodeGen/PHIElimination.cpp Wed Dec  6 11:46:31 2006
@@ -29,8 +29,8 @@
 using namespace llvm;
 
 namespace {
-  static Statistic<> NumAtomic("phielim", "Number of atomic phis lowered");
-  static Statistic<> NumSimple("phielim", "Number of simple phis lowered");
+  static Statistic NumAtomic("phielim", "Number of atomic phis lowered");
+  static Statistic NumSimple("phielim", "Number of simple phis lowered");
   
   struct VISIBILITY_HIDDEN PNE : public MachineFunctionPass {
     bool runOnMachineFunction(MachineFunction &Fn) {


Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.134 
llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.135
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.134       Tue Dec  5 19:48:55 2006
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp     Wed Dec  6 11:46:31 2006
@@ -37,9 +37,9 @@
 
 namespace {
 
-  static Statistic<> NumIters
+  static Statistic NumIters
   ("regalloc", "Number of iterations performed");
-  static Statistic<> NumBacktracks
+  static Statistic NumBacktracks
   ("regalloc", "Number of times we had to backtrack");
 
   static RegisterRegAlloc


Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.96 
llvm/lib/CodeGen/RegAllocLocal.cpp:1.97
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.96     Thu Nov 16 20:09:07 2006
+++ llvm/lib/CodeGen/RegAllocLocal.cpp  Wed Dec  6 11:46:31 2006
@@ -33,9 +33,9 @@
 using namespace llvm;
 
 namespace {
-  static Statistic<> NumStores("ra-local", "Number of stores added");
-  static Statistic<> NumLoads ("ra-local", "Number of loads added");
-  static Statistic<> NumFolded("ra-local", "Number of loads/stores folded "
+  static Statistic NumStores("ra-local", "Number of stores added");
+  static Statistic NumLoads ("ra-local", "Number of loads added");
+  static Statistic NumFolded("ra-local", "Number of loads/stores folded "
                               "into instructions");
 
   static RegisterRegAlloc


Index: llvm/lib/CodeGen/RegAllocSimple.cpp
diff -u llvm/lib/CodeGen/RegAllocSimple.cpp:1.77 
llvm/lib/CodeGen/RegAllocSimple.cpp:1.78
--- llvm/lib/CodeGen/RegAllocSimple.cpp:1.77    Tue Nov 28 16:48:48 2006
+++ llvm/lib/CodeGen/RegAllocSimple.cpp Wed Dec  6 11:46:31 2006
@@ -31,8 +31,8 @@
 using namespace llvm;
 
 namespace {
-  static Statistic<> NumStores("ra-simple", "Number of stores added");
-  static Statistic<> NumLoads ("ra-simple", "Number of loads added");
+  static Statistic NumStores("ra-simple", "Number of stores added");
+  static Statistic NumLoads ("ra-simple", "Number of loads added");
 
   static RegisterRegAlloc
     simpleRegAlloc("simple", "  simple register allocator",


Index: llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
diff -u llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.42 
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.43
--- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.42 Fri Dec  1 15:48:44 2006
+++ llvm/lib/CodeGen/TwoAddressInstructionPass.cpp      Wed Dec  6 11:46:31 2006
@@ -45,11 +45,11 @@
 using namespace llvm;
 
 namespace {
-  static Statistic<> NumTwoAddressInstrs("twoaddressinstruction",
+  static Statistic NumTwoAddressInstrs("twoaddressinstruction",
                                   "Number of two-address instructions");
-  static Statistic<> NumCommuted("twoaddressinstruction",
+  static Statistic NumCommuted("twoaddressinstruction",
                           "Number of instructions commuted to coalesce");
-  static Statistic<> NumConvertedTo3Addr("twoaddressinstruction",
+  static Statistic NumConvertedTo3Addr("twoaddressinstruction",
                                 "Number of instructions promoted to 
3-address");
 
   struct VISIBILITY_HIDDEN TwoAddressInstructionPass


Index: llvm/lib/CodeGen/VirtRegMap.cpp
diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.81 
llvm/lib/CodeGen/VirtRegMap.cpp:1.82
--- llvm/lib/CodeGen/VirtRegMap.cpp:1.81        Fri Dec  1 15:48:44 2006
+++ llvm/lib/CodeGen/VirtRegMap.cpp     Wed Dec  6 11:46:31 2006
@@ -33,12 +33,12 @@
 using namespace llvm;
 
 namespace {
-  static Statistic<> NumSpills("spiller", "Number of register spills");
-  static Statistic<> NumStores("spiller", "Number of stores added");
-  static Statistic<> NumLoads ("spiller", "Number of loads added");
-  static Statistic<> NumReused("spiller", "Number of values reused");
-  static Statistic<> NumDSE   ("spiller", "Number of dead stores elided");
-  static Statistic<> NumDCE   ("spiller", "Number of copies elided");
+  static Statistic NumSpills("spiller", "Number of register spills");
+  static Statistic NumStores("spiller", "Number of stores added");
+  static Statistic NumLoads ("spiller", "Number of loads added");
+  static Statistic NumReused("spiller", "Number of values reused");
+  static Statistic NumDSE   ("spiller", "Number of dead stores elided");
+  static Statistic NumDCE   ("spiller", "Number of copies elided");
 
   enum SpillerName { simple, local };
 



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to