mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-04 10:30:01 +00:00
Move the N->use_empty() assert from DeleteNode to
DeleteNodeNotInCSEMaps, since DeleteNode just calls DeleteNodeNotInCSEMaps. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d5b455f6b0
commit
e77f89de8c
@ -568,8 +568,6 @@ void SelectionDAG::RemoveDeadNode(SDNode *N, DAGUpdateListener *UpdateListener){
|
||||
}
|
||||
|
||||
void SelectionDAG::DeleteNode(SDNode *N) {
|
||||
assert(N->use_empty() && "Cannot delete a node that is not dead!");
|
||||
|
||||
// First take this out of the appropriate CSE map.
|
||||
RemoveNodeFromCSEMaps(N);
|
||||
|
||||
@ -579,7 +577,8 @@ void SelectionDAG::DeleteNode(SDNode *N) {
|
||||
}
|
||||
|
||||
void SelectionDAG::DeleteNodeNotInCSEMaps(SDNode *N) {
|
||||
assert(N != AllNodes.begin());
|
||||
assert(N != AllNodes.begin() && "Cannot delete the entry node!");
|
||||
assert(N->use_empty() && "Cannot delete a node that is not dead!");
|
||||
|
||||
// Drop all of the operands and decrement used node's use counts.
|
||||
for (SDNode::op_iterator I = N->op_begin(), E = N->op_end(); I != E; ++I)
|
||||
|
Loading…
x
Reference in New Issue
Block a user