aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-04-22 13:35:18 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-04-22 13:35:18 +0000
commit500b4dba32ee02584634a562c9cc43a5480acd4a (patch)
tree53bb8957ccd6773178149ec7d1ead1244d7a3b95 /lib
parent945de9b764a86578f6e363fee20128bae2fb7dd5 (diff)
downloadexternal_llvm-500b4dba32ee02584634a562c9cc43a5480acd4a.zip
external_llvm-500b4dba32ee02584634a562c9cc43a5480acd4a.tar.gz
external_llvm-500b4dba32ee02584634a562c9cc43a5480acd4a.tar.bz2
keep track of max depth stats
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Alpha/AlphaISelPattern.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index 4b9d7af..186daed 100644
--- a/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -383,6 +383,7 @@ class ISel : public SelectionDAGISel {
int count_ins;
int count_outs;
bool has_sym;
+ int max_depth;
public:
ISel(TargetMachine &TM) : SelectionDAGISel(AlphaLowering), AlphaLowering(TM)
@@ -394,17 +395,20 @@ public:
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";