MorphNodeTo doesn't preserve the memory operands. Because we're morphing a node
authorBill Wendling <isanbard@gmail.com>
Wed, 23 Jun 2010 18:16:24 +0000 (18:16 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 23 Jun 2010 18:16:24 +0000 (18:16 +0000)
commit151d26d15dc6fe89329d7cccb0638c324c58f485
tree764b8ff9ff31a04604b9b8a8d3ad72a37ef97854
parent238e73f9010e17e2f65c39d238971b30e346fbbd
MorphNodeTo doesn't preserve the memory operands. Because we're morphing a node
into the same node, but with different non-memory operands, we need to replace
the memory operands after it's finished morphing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106643 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
test/CodeGen/X86/2010-02-19-TailCallRetAddrBug.ll