[PATCH] D88653: [ARM] Fix pointer offset when splitting stores from VMOVDRR
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 3 08:48:23 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7feafa0286f1: [ARM] Fix pointer offset when splitting stores from VMOVDRR (authored by dmgreen).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88653/new/
https://reviews.llvm.org/D88653
Files:
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/Thumb2/vmovdrroffset.ll
Index: llvm/test/CodeGen/Thumb2/vmovdrroffset.ll
===================================================================
--- llvm/test/CodeGen/Thumb2/vmovdrroffset.ll
+++ llvm/test/CodeGen/Thumb2/vmovdrroffset.ll
@@ -21,9 +21,9 @@
; CHECK-NEXT: vmov r2, r3, d8
; CHECK-NEXT: vmov r0, r1, d0
; CHECK-NEXT: bl __aeabi_dadd
+; CHECK-NEXT: str r1, [sp, #4]
; CHECK-NEXT: mov r4, r0
; CHECK-NEXT: ldrb.w r0, [sp, #7]
-; CHECK-NEXT: str r1, [sp, #4]
; CHECK-NEXT: eor r0, r0, #128
; CHECK-NEXT: strb.w r0, [sp, #7]
; CHECK-NEXT: vmov r0, r1, d9
Index: llvm/lib/Target/ARM/ARMISelLowering.cpp
===================================================================
--- llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -14546,15 +14546,15 @@
SDValue BasePtr = St->getBasePtr();
SDValue NewST1 = DAG.getStore(
St->getChain(), DL, StVal.getNode()->getOperand(isBigEndian ? 1 : 0),
- BasePtr, St->getPointerInfo(), St->getAlignment(),
+ BasePtr, St->getPointerInfo(), St->getOriginalAlign(),
St->getMemOperand()->getFlags());
SDValue OffsetPtr = DAG.getNode(ISD::ADD, DL, MVT::i32, BasePtr,
DAG.getConstant(4, DL, MVT::i32));
return DAG.getStore(NewST1.getValue(0), DL,
StVal.getNode()->getOperand(isBigEndian ? 0 : 1),
- OffsetPtr, St->getPointerInfo(),
- std::min(4U, St->getAlignment() / 2),
+ OffsetPtr, St->getPointerInfo().getWithOffset(4),
+ St->getOriginalAlign(),
St->getMemOperand()->getFlags());
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88653.295981.patch
Type: text/x-patch
Size: 1704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201003/ed0a2c8c/attachment.bin>
More information about the llvm-commits
mailing list