[PATCH] D82216: [SVE] Remove calls to VectorType::getNumElements from ARM
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 15:37:42 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGcd6848f6e1df: [SVE] Remove calls to VectorType::getNumElements from ARM (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82216/new/
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.272560.patch
Type: text/x-patch
Size: 1045 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200622/68b97783/attachment.bin>
More information about the llvm-commits
mailing list