[AArch64] Add MMOs to unscaled pairs.

Test to be committed in follow up commit, per discussion in D17097.
http://reviews.llvm.org/D17097

llvm-svn: 262942
This commit is contained in:
Chad Rosier 2016-03-08 17:16:38 +00:00
parent 0650192094
commit e40b9513a9
1 changed files with 2 additions and 3 deletions

View File

@ -888,9 +888,8 @@ AArch64LoadStoreOpt::mergePairedInsns(MachineBasicBlock::iterator I,
.addOperand(getLdStRegOp(RtMI))
.addOperand(getLdStRegOp(Rt2MI))
.addOperand(BaseRegOp)
.addImm(OffsetImm);
// FIXME: Copy the mem operands from the source instructions. The MI scheduler
// needs these to reason about loads/stores.
.addImm(OffsetImm)
.setMemRefs(I->mergeMemRefsWith(*Paired));
(void)MIB;