[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp ScheduleDAGList.cpp

Chris Lattner sabre at nondot.org
Tue Dec 19 14:41:40 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

DAGCombiner.cpp updated: 1.263 -> 1.264
ScheduleDAGList.cpp updated: 1.70 -> 1.71
---
Log message:

Eliminate static ctors from Statistics


---
Diffs of the changes:  (+6 -12)

 DAGCombiner.cpp     |   12 ++++--------
 ScheduleDAGList.cpp |    6 ++----
 2 files changed, 6 insertions(+), 12 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.263 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.264
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.263	Sat Dec 16 00:25:23 2006
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp	Tue Dec 19 16:41:21 2006
@@ -40,15 +40,11 @@
 #include <algorithm>
 using namespace llvm;
 
+STATISTIC(NodesCombined   , "Number of dag nodes combined");
+STATISTIC(PreIndexedNodes , "Number of pre-indexed nodes created");
+STATISTIC(PostIndexedNodes, "Number of post-indexed nodes created");
+
 namespace {
-  static Statistic NodesCombined ("dagcombiner", 
-				    "Number of dag nodes combined");
-            
-  static Statistic PreIndexedNodes ("pre_indexed_ops", 
-                                      "Number of pre-indexed nodes created");
-  static Statistic PostIndexedNodes ("post_indexed_ops", 
-                                       "Number of post-indexed nodes created");
-            
   static cl::opt<bool>
     CombinerAA("combiner-alias-analysis", cl::Hidden,
                cl::desc("Turn on alias analysis during testing"));


Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.70 llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.71
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.70	Thu Dec  7 14:04:42 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp	Tue Dec 19 16:41:21 2006
@@ -34,10 +34,8 @@
 #include <queue>
 using namespace llvm;
 
-namespace {
-  static Statistic NumNoops ("scheduler", "Number of noops inserted");
-  static Statistic NumStalls("scheduler", "Number of pipeline stalls");
-}
+STATISTIC(NumNoops , "Number of noops inserted");
+STATISTIC(NumStalls, "Number of pipeline stalls");
 
 static RegisterScheduler
   tdListDAGScheduler("list-td", "  Top-down list scheduler",






More information about the llvm-commits mailing list