[PATCH] D66009: [ARM] Don't pretend we know how to generate MVE VLDn
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 05:05:09 PDT 2019
dmgreen created this revision.
dmgreen added reviewers: t.p.northover, samparker, SjoerdMeijer, simon_tatham, ostannard.
Herald added subscribers: hiraditya, kristof.beyls, javed.absar.
Herald added a project: LLVM.
dmgreen added a parent revision: D66008: [ARM] MVE sext of a load is also free..
dmgreen added a comment.
I need a test for this..
We don't yet know how to generate these instructions for MVE. And in the case of VLD3, we don't have the instruction.
https://reviews.llvm.org/D66009
Files:
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.h
Index: llvm/lib/Target/ARM/ARMISelLowering.h
===================================================================
--- llvm/lib/Target/ARM/ARMISelLowering.h
+++ llvm/lib/Target/ARM/ARMISelLowering.h
@@ -536,7 +536,7 @@
Instruction *emitTrailingFence(IRBuilder<> &Builder, Instruction *Inst,
AtomicOrdering Ord) const override;
- unsigned getMaxSupportedInterleaveFactor() const override { return 4; }
+ unsigned getMaxSupportedInterleaveFactor() const override;
bool lowerInterleavedLoad(LoadInst *LI,
ArrayRef<ShuffleVectorInst *> Shuffles,
Index: llvm/lib/Target/ARM/ARMISelLowering.cpp
===================================================================
--- llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -16198,6 +16198,13 @@
return VecSize == 64 || VecSize % 128 == 0;
}
+unsigned ARMTargetLowering::getMaxSupportedInterleaveFactor() const
+{
+ if (Subtarget->hasNEON())
+ return 4;
+ return TargetLoweringBase::getMaxSupportedInterleaveFactor();
+}
+
/// Lower an interleaved load into a vldN intrinsic.
///
/// E.g. Lower an interleaved load (Factor = 2):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66009.214358.patch
Type: text/x-patch
Size: 1202 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190809/58de6680/attachment.bin>
More information about the llvm-commits
mailing list