When folding memory operands, preserve existing MachineMemOperands.
authorAndrew Trick <atrick@apple.com>
Thu, 14 Nov 2013 23:45:04 +0000 (23:45 +0000)
committerAndrew Trick <atrick@apple.com>
Thu, 14 Nov 2013 23:45:04 +0000 (23:45 +0000)
commit849596ced42f2760c5b63f7676e16829b808b5c9
tree24eee41c189f3439c360bcb1813fafb25bd4ec20
parent25116f50965b237155e5d9221c36e9ffa6bff2d2
When folding memory operands, preserve existing MachineMemOperands.

This comes into play with patchpoint, which can fold multiple
operands. Since the patchpoint is already treated as a call, the
machine mem operands won't affect anything, and there's nothing to
test. But we still want to do the right thing here to be sure that our
MIs obey the rules.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194750 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInstrInfo.cpp