[SDAG] MorphNodeTo recursively deletes dead operands of the old
authorChandler Carruth <chandlerc@gmail.com>
Fri, 1 Aug 2014 22:09:43 +0000 (22:09 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 1 Aug 2014 22:09:43 +0000 (22:09 +0000)
commit04395213ab46faceee69e127b698687cd33e984d
treee2c269ade77d4954c146565c9e59a781cec96b62
parentb2df20d0152e4cb2d67dbd87e35a33688e9f5826
[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
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/Mips/MipsSEISelLowering.cpp
lib/Target/R600/SIISelLowering.cpp