[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Fri Apr 22 06:35:35 PDT 2005



Changes in directory llvm/lib/Target/Alpha:

AlphaISelPattern.cpp updated: 1.100 -> 1.101
---
Log message:

keep track of max depth stats

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

 AlphaISelPattern.cpp |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.100 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.101
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.100	Thu Apr 21 18:10:23 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp	Fri Apr 22 08:35:18 2005
@@ -383,6 +383,7 @@
   int count_ins;
   int count_outs;
   bool has_sym;
+  int max_depth;
 
 public:
   ISel(TargetMachine &TM) : SelectionDAGISel(AlphaLowering), AlphaLowering(TM)
@@ -394,17 +395,20 @@
     DEBUG(BB->dump());
     count_ins = 0;
     count_outs = 0;
+    max_depth = 0;
     has_sym = false;
 
     // Codegen the basic block.
     ISelDAG = &DAG;
+    max_depth = DAG.getRoot().getNodeDepth();
     Select(DAG.getRoot());
 
     if(has_sym)
       ++count_ins;
     if(EnableAlphaCount)
-      std::cerr << "COUNT: " << BB->getParent()->getFunction ()->getName() << " "
-                << BB->getNumber() << " "
+      std::cerr << "COUNT: " << BB->getParent()->getFunction ()->getName() << " " 
+                << BB->getNumber() << " " 
+                << max_depth << " "
                 << count_ins << " "
                 << count_outs << "\n";
 






More information about the llvm-commits mailing list