From 221c97974cd57845f56859755ac31cd0c1fd2a62 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 7 Aug 2002 21:41:11 +0000 Subject: [PATCH] Minor changes to DEBUG()'s git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3261 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/BottomUpClosure.cpp | 4 +++- lib/Analysis/DataStructure/TopDownClosure.cpp | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp index f35e531e41b..2d2a182a4f5 100644 --- a/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp @@ -235,7 +235,9 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) { Graph->markIncompleteNodes(); Graph->removeDeadNodes(/*KeepAllGlobals*/ false, /*KeepCalls*/ false); - DEBUG(std::cerr << " [BU] Done inlining: " << F.getName() << "\n"); + DEBUG(std::cerr << " [BU] Done inlining: " << F.getName() << " [" + << Graph->getGraphSize() << "+" << Graph->getFunctionCalls().size() + << "]\n"); return *Graph; } diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp index 561e857f636..ca6556d8ffa 100644 --- a/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/lib/Analysis/DataStructure/TopDownClosure.cpp @@ -218,8 +218,9 @@ DSGraph &TDDataStructures::calculateGraph(Function &F) { /*&& FIXME: NEED TO CHECK IF ALL CALLERS FOUND!*/); Graph->removeDeadNodes(/*KeepAllGlobals*/ false, /*KeepCalls*/ false); - DEBUG(std::cerr << " [TD] Done inlining callers for: " - << F.getName() << "\n"); + DEBUG(std::cerr << " [TD] Done inlining callers for: " << F.getName() << " [" + << Graph->getGraphSize() << "+" << Graph->getFunctionCalls().size() + << "]\n"); return *Graph; }