[PATCH] D17097: [AArch64] add mem ref to unscaled pairs

Sebastian Pop via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 15:08:12 PST 2016


sebpop updated this revision to Diff 47535.
sebpop added a comment.

Update patch to apply to current trunk.


http://reviews.llvm.org/D17097

Files:
  llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp

Index: llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
===================================================================
--- llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
+++ llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
@@ -855,9 +855,8 @@
             .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;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17097.47535.patch
Type: text/x-patch
Size: 661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160210/7a73bcde/attachment.bin>


More information about the llvm-commits mailing list