mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
[SDAG] Allow the legalizer to delete an illegally typed intermediate
introduced during legalization. This pattern is based on other patterns in the legalizer that I changed in the same way. Now, the legalizer eagerly collects its garbage when necessary so that we can survive leaving such nodes around for it. Instead, we add an assert to make sure the node will be correctly handled by that layer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5e3bfde3f4
commit
d61e28d3ec
@ -2754,9 +2754,10 @@ static SDValue LowerUMULO_SMULO(SDValue Op, SelectionDAG &DAG,
|
||||
ISD::SETNE);
|
||||
}
|
||||
// MulResult is a node with an illegal type. Because such things are not
|
||||
// generally permitted during this phase of legalization, delete the
|
||||
// node. The above EXTRACT_ELEMENT nodes should have been folded.
|
||||
DAG.DeleteNode(MulResult.getNode());
|
||||
// generally permitted during this phase of legalization, ensure that
|
||||
// nothing is left using the node. The above EXTRACT_ELEMENT nodes should have
|
||||
// been folded.
|
||||
assert(MulResult->use_empty() && "Illegally typed node still in use!");
|
||||
|
||||
SDValue Ops[2] = { BottomHalf, TopHalf } ;
|
||||
return DAG.getMergeValues(Ops, dl);
|
||||
|
Loading…
Reference in New Issue
Block a user