diff options
| author | David Sherwood <david.sherwood@arm.com> | 2020-06-08 11:20:13 +0100 |
|---|---|---|
| committer | David Sherwood <david.sherwood@arm.com> | 2020-06-08 12:38:14 +0100 |
| commit | cda166c37ce98b0934c9c4780ad39ce6885da724 (patch) | |
| tree | d87befcf88ca916fdec4617bfa858a4a352bc84c /llvm | |
| parent | 4c50cf9197370a6a42601bf39c0cd8606b8ff6ec (diff) | |
| download | llvm-cda166c37ce98b0934c9c4780ad39ce6885da724.zip llvm-cda166c37ce98b0934c9c4780ad39ce6885da724.tar.gz llvm-cda166c37ce98b0934c9c4780ad39ce6885da724.tar.bz2 | |
[SVE] Remove getNumElements() calls in Verifier::visitIntrinsicCall
Replace getNumElements() with getElementCount() when asserting that
two types have the same element counts.
Differential Revision: https://reviews.llvm.org/D81371
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/IR/Verifier.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index eae7c03..7b13b7f 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -4855,8 +4855,8 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) { "masked_load: return must match pointer type", Call); Assert(PassThru->getType() == DataTy, "masked_load: pass through and data type must match", Call); - Assert(cast<VectorType>(Mask->getType())->getNumElements() == - cast<VectorType>(DataTy)->getNumElements(), + Assert(cast<VectorType>(Mask->getType())->getElementCount() == + cast<VectorType>(DataTy)->getElementCount(), "masked_load: vector mask must be same length as data", Call); break; } @@ -4874,8 +4874,8 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) { Type *DataTy = cast<PointerType>(Ptr->getType())->getElementType(); Assert(DataTy == Val->getType(), "masked_store: storee must match pointer type", Call); - Assert(cast<VectorType>(Mask->getType())->getNumElements() == - cast<VectorType>(DataTy)->getNumElements(), + Assert(cast<VectorType>(Mask->getType())->getElementCount() == + cast<VectorType>(DataTy)->getElementCount(), "masked_store: vector mask must be same length as data", Call); break; } |
