I was confused about this, it turns out that MorphNodeTo
*does* delete ex-operands that become dead. llvm-svn: 97559
This commit is contained in:
parent
9732ab6d86
commit
350bb062b2
|
@ -1770,9 +1770,8 @@ MorphNode(SDNode *Node, unsigned TargetOpc, SDVTList VTList,
|
|||
} else if (Node->getValueType(NTMNumResults-1) == MVT::Other)
|
||||
OldChainResultNo = NTMNumResults-1;
|
||||
|
||||
// FIXME: If this matches multiple nodes it will just leave them here
|
||||
// dead with noone to love them. These dead nodes can block future
|
||||
// matches (!).
|
||||
// Call the underlying SelectionDAG routine to do the transmogrification. Note
|
||||
// that this deletes operands of the old node that become dead.
|
||||
SDNode *Res = CurDAG->MorphNodeTo(Node, ~TargetOpc, VTList, Ops, NumOps);
|
||||
|
||||
// MorphNodeTo can operate in two ways: if an existing node with the
|
||||
|
|
Loading…
Reference in New Issue