[SystemZ] Don't drop MO flags in foldMemoryOperandImpl()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 21 Mar 2017 05:49:40 +0000 (05:49 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Tue, 21 Mar 2017 05:49:40 +0000 (05:49 +0000)
commitbd65421f08bf42c4a09279ec9c903968c657c487
tree6984f4c8f2abc4ccf618eef08916409b222cef67
parent07db3f7e3f268c01e66e87608968c5cb71e35f82
[SystemZ]  Don't drop MO flags in foldMemoryOperandImpl()

The def operand of the new LG/LD should have the old def operands
flags and subreg index.

New test: test/CodeGen/SystemZ/fold-memory-op-impl.ll

Review: Ulrich Weigand
llvm-svn: 298341
llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
llvm/test/CodeGen/SystemZ/fold-memory-op-impl.ll [new file with mode: 0644]