[llvm-commits] [poolalloc] r111944 - /poolalloc/trunk/lib/DSA/BottomUpClosure.cpp

Will Dietz wdietz2 at illinois.edu
Tue Aug 24 12:08:35 PDT 2010


Author: wdietz2
Date: Tue Aug 24 14:08:35 2010
New Revision: 111944

URL: http://llvm.org/viewvc/llvm-project?rev=111944&view=rev
Log:
Filter callsites on complete callsites nodes when determining if we're done with them.

Modified:
    poolalloc/trunk/lib/DSA/BottomUpClosure.cpp

Modified: poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/BottomUpClosure.cpp?rev=111944&r1=111943&r2=111944&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/BottomUpClosure.cpp (original)
+++ poolalloc/trunk/lib/DSA/BottomUpClosure.cpp Tue Aug 24 14:08:35 2010
@@ -737,6 +737,13 @@
                                std::mem_fun(&Function::isDeclaration));
         NodeCallees.erase(ErasePoint, NodeCallees.end());
 
+        // Remove callees that aren't legally called from this callsite.
+        // We're done with the callsite if all /legal/ callees have been
+        // taken care of already.  We remove them because they won't
+        // be part of the callgraph (not because of this callsite anyway)
+        // and so we shouldn't expect them to be.
+        applyCallsiteFilter(CS,NodeCallees);
+
         //
         // Only erase this call site if there's nothing left to do for it.
         // This means that all of the function targets recorded in the DSNode





More information about the llvm-commits mailing list