Try using trivially dead deletion
authorChris Lattner <sabre@nondot.org>
Wed, 2 Jul 2003 19:49:11 +0000 (19:49 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 2 Jul 2003 19:49:11 +0000 (19:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7075 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/TopDownClosure.cpp

index 834c594b29d3602aa3a5f26b0b635656fe6c85d1..117556940093043d4e99fabea6bc9fd69a23a290 100644 (file)
@@ -135,6 +135,7 @@ void TDDataStructures::calculateGraphFrom(Function &F) {
 
 void TDDataStructures::inlineGraphIntoCallees(DSGraph &Graph) {
   // Recompute the Incomplete markers and eliminate unreachable nodes.
+  Graph.removeTriviallyDeadNodes();
   Graph.maskIncompleteMarkers();
 
   // If any of the functions has incomplete incoming arguments, don't mark any