forked from OSchip/llvm-project
[SVE] Replace deprecated call in changeVectorElementTypeToInteger
Summary: Replace getVectorNumElements with getVectorElementCount; gets rid of the warnings in several tests Reviewers: sdesmalen, kmclaughlin, dancgr, efriedma, each, andwar, rengolin Reviewed By: efriedma Subscribers: tschuett, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80746
This commit is contained in:
parent
87e4ad4d5c
commit
b637519eef
|
@ -97,8 +97,7 @@ namespace llvm {
|
|||
MVT EltTy = getSimpleVT().getVectorElementType();
|
||||
unsigned BitWidth = EltTy.getSizeInBits();
|
||||
MVT IntTy = MVT::getIntegerVT(BitWidth);
|
||||
MVT VecTy = MVT::getVectorVT(IntTy, getVectorNumElements(),
|
||||
isScalableVector());
|
||||
MVT VecTy = MVT::getVectorVT(IntTy, getVectorElementCount());
|
||||
assert(VecTy.SimpleTy != MVT::INVALID_SIMPLE_VALUE_TYPE &&
|
||||
"Simple vector VT not representable by simple integer vector VT!");
|
||||
return VecTy;
|
||||
|
|
Loading…
Reference in New Issue