mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +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:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user