summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-03-08 17:16:38 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-03-08 17:16:38 +0000
commite40b9513a97f30fd7ff5eb359a6a1c3d7aea2b1a (patch)
tree3296f0e841f395403c1b8ed77035ed47315b80cf /llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
parent0650192094678d18825b60f8ee8fd6cd003303cb (diff)
downloadbcm5719-llvm-e40b9513a97f30fd7ff5eb359a6a1c3d7aea2b1a.tar.gz
bcm5719-llvm-e40b9513a97f30fd7ff5eb359a6a1c3d7aea2b1a.zip
[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
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
index 178390e7a31..b744dc2f5e0 100644
--- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
@@ -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;
OpenPOWER on IntegriCloud