summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2018-10-25 21:10:39 +0000
committerDavid Greene <greened@obbligato.org>2018-10-25 21:10:39 +0000
commit53e869da7d6672c7ad7e118b8969905733806afe (patch)
tree21fe5f3696911bfd13c8de4746e4c8834e291d06 /llvm/lib
parent117b1fa19af43aff5d4ef0e5f35b80c9c27c5cf1 (diff)
downloadbcm5719-llvm-53e869da7d6672c7ad7e118b8969905733806afe.tar.gz
bcm5719-llvm-53e869da7d6672c7ad7e118b8969905733806afe.zip
[AArch64] Create proper memoperand for multi-vector stores
Include all of the store's source vector operands when creating the MachineMemOperand. Previously, we were missing the first operand, making the store size seem smaller than it really is. Differential Revision: https://reviews.llvm.org/D52816 llvm-svn: 345315
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index a7a1b0a5feb..2a42d2db75d 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -7972,7 +7972,7 @@ bool AArch64TargetLowering::getTgtMemIntrinsic(IntrinsicInfo &Info,
Info.opc = ISD::INTRINSIC_VOID;
// Conservatively set memVT to the entire set of vectors stored.
unsigned NumElts = 0;
- for (unsigned ArgI = 1, ArgE = I.getNumArgOperands(); ArgI < ArgE; ++ArgI) {
+ for (unsigned ArgI = 0, ArgE = I.getNumArgOperands(); ArgI < ArgE; ++ArgI) {
Type *ArgTy = I.getArgOperand(ArgI)->getType();
if (!ArgTy->isVectorTy())
break;
OpenPOWER on IntegriCloud