Reenable 'quick exit' case
authorChris Lattner <sabre@nondot.org>
Fri, 8 Nov 2002 22:26:43 +0000 (22:26 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 Nov 2002 22:26:43 +0000 (22:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4638 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/TopDownClosure.cpp

index 13ed8fd9514af50d13a2e18345357cf97a31cc90..36d8aca78ca52a99ee9d010315c1a3d9b26aad2a 100644 (file)
@@ -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.