1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-04-11 16:37:42 +00:00

Elements in DeadNodeSet are checked for use_empty() before they

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
This commit is contained in:
Dan Gohman 2008-08-21 16:24:54 +00:00
parent 815ffa24c4
commit ca84121596

@ -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