OSDN Git Service

Elements in DeadNodeSet are checked for use_empty() before they
authorDan Gohman <gohman@apple.com>
Thu, 21 Aug 2008 16:24:54 +0000 (16:24 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 21 Aug 2008 16:24:54 +0000 (16:24 +0000)
are actually deleted, so it's not necessary to remove re-used
nodes from the set.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55123 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 00fc3aa..74d6a2a 100644 (file)
@@ -3998,7 +3998,6 @@ SDNode *SelectionDAG::MorphNodeTo(SDNode *N, unsigned Opc,
     N->OperandList[i].setUser(N);
     SDNode *ToUse = N->OperandList[i].getVal();
     ToUse->addUser(i, N);
-    DeadNodeSet.erase(ToUse);
   }
 
   // Delete any nodes that are still dead after adding the uses for the