mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-28 02:37:37 +00:00
[SVE] Remove calls to VectorType::getNumElements from ARM
Reviewers: efriedma, greened, c-rhodes, david-arm, dmgreen Reviewed By: dmgreen Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, dmgreen, danielkiss, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82216
This commit is contained in:
parent
0d9726bc3d
commit
cd6848f6e1
@ -495,7 +495,7 @@ Value *MVEGatherScatterLowering::tryCreateMaskedScatterBase(
|
||||
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 @@ Value *MVEGatherScatterLowering::tryCreateMaskedScatterBaseWB(
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user