aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/TopDownClosure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-08 22:26:43 +0000
committerChris Lattner <sabre@nondot.org>2002-11-08 22:26:43 +0000
commitce2d1328fc542e662ab41c64642d2362776840e8 (patch)
tree4f1637714f91cbc14e0c95f3b806d051a07d0509 /lib/Analysis/DataStructure/TopDownClosure.cpp
parent7cc9875c9d4c85bf09e838f76402d7ae47eb29b3 (diff)
Reenable 'quick exit' case
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/TopDownClosure.cpp')
-rw-r--r--lib/Analysis/DataStructure/TopDownClosure.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp
index 13ed8fd951..36d8aca78c 100644
--- a/lib/Analysis/DataStructure/TopDownClosure.cpp
+++ b/lib/Analysis/DataStructure/TopDownClosure.cpp
@@ -92,12 +92,11 @@ void TDDataStructures::calculateGraph(Function &F) {
DSGraph &Graph = getOrCreateDSGraph(F);
const std::vector<DSCallSite> &CallSites = Graph.getFunctionCalls();
-#if 0
if (CallSites.empty()) {
DEBUG(std::cerr << " [TD] No callees for: " << F.getName() << "\n");
return; // If no call sites, the graph is the same as the BU graph!
}
-#endif
+
// Loop over all of the call sites, building a multi-map from Callees to
// DSCallSite*'s. With this map we can then loop over each callee, cloning
// this graph once into it, then resolving arguments.