mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
[SDAG] MorphNodeTo recursively deletes dead operands of the old
fromulation of the node, which isn't really the desired behavior from within the combiner or legalizer, but is necessary within ISel. I've added a hopefully helpful comment and fixed the only two places where this took place. Yet another step toward the combiner and legalizer not needing to use update listeners with virtual calls to manage the worklists behind legalization and combining. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214574 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5467,6 +5467,10 @@ SDNode *SelectionDAG::UpdadeSDLocOnMergedSDNode(SDNode *N, SDLoc OLoc) {
|
||||
/// node, and because it doesn't require CSE recalculation for any of
|
||||
/// the node's users.
|
||||
///
|
||||
/// However, note that MorphNodeTo recursively deletes dead nodes from the DAG.
|
||||
/// As a consequence it isn't appropriate to use from within the DAG combiner or
|
||||
/// the legalizer which maintain worklists that would need to be updated when
|
||||
/// deleting things.
|
||||
SDNode *SelectionDAG::MorphNodeTo(SDNode *N, unsigned Opc,
|
||||
SDVTList VTs, ArrayRef<SDValue> Ops) {
|
||||
unsigned NumOps = Ops.size();
|
||||
|
||||
Reference in New Issue
Block a user