[PATCH] D82216: [SVE] Remove calls to VectorType::getNumElements from ARM
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 19 10:53:00 PDT 2020
ctetreau created this revision.
Herald added subscribers: llvm-commits, danielkiss, dmgreen, psnobl, rkruppe, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82216
Files:
llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
Index: llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
===================================================================
--- llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
+++ llvm/lib/Target/ARM/MVEGatherScatterLowering.cpp
@@ -495,7 +495,7 @@
IntrinsicInst *I, Value *Ptr, IRBuilder<> &Builder, int64_t Increment) {
using namespace PatternMatch;
Value *Input = I->getArgOperand(0);
- auto *Ty = cast<VectorType>(Input->getType());
+ auto *Ty = cast<FixedVectorType>(Input->getType());
// Only QR variants allow truncating
if (!(Ty->getNumElements() == 4 && Ty->getScalarSizeInBits() == 32)) {
// Can't build an intrinsic for this
@@ -519,7 +519,7 @@
IntrinsicInst *I, Value *Ptr, IRBuilder<> &Builder, int64_t Increment) {
using namespace PatternMatch;
Value *Input = I->getArgOperand(0);
- auto *Ty = cast<VectorType>(Input->getType());
+ auto *Ty = cast<FixedVectorType>(Input->getType());
LLVM_DEBUG(
dbgs()
<< "masked scatters: storing to a vector of pointers with writeback\n");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82216.272135.patch
Type: text/x-patch
Size: 1045 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200619/0ae52d1b/attachment.bin>
More information about the llvm-commits
mailing list