[PATCH] D85889: [ARM][MVE] Fix for tail predication for loops containing MVE gather/scatters
Anna Welker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 13 03:04:36 PDT 2020
anwel created this revision.
anwel added a reviewer: dmgreen.
anwel added a project: LLVM.
Herald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls.
anwel requested review of this revision.
Fix to include non-predicated version of write-back gather in special case treatment for deducting the instruction type.
(This is fixing https://reviews.llvm.org/D85138 for corner cases)
https://reviews.llvm.org/D85889
Files:
llvm/lib/Target/ARM/MVETailPredication.cpp
Index: llvm/lib/Target/ARM/MVETailPredication.cpp
===================================================================
--- llvm/lib/Target/ARM/MVETailPredication.cpp
+++ llvm/lib/Target/ARM/MVETailPredication.cpp
@@ -236,7 +236,8 @@
unsigned ID = I->getIntrinsicID();
FixedVectorType *VecTy;
if (ID == Intrinsic::masked_load || isGather(I)) {
- if (ID == Intrinsic::arm_mve_vldr_gather_base_wb_predicated)
+ if (ID == Intrinsic::arm_mve_vldr_gather_base_wb ||
+ ID == Intrinsic::arm_mve_vldr_gather_base_wb_predicated)
// then the type is a StructType
VecTy = dyn_cast<FixedVectorType>(I->getType()->getContainedType(0));
else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85889.285298.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200813/79e50b4d/attachment.bin>
More information about the llvm-commits
mailing list