[llvm] b637519 - [SVE] Replace deprecated call in changeVectorElementTypeToInteger
Danilo C. Grael via llvm-commits
llvm-commits at lists.llvm.org
Fri May 29 10:28:25 PDT 2020
Author: Anna Bulanova
Date: 2020-05-29T13:27:28-04:00
New Revision: b637519eef01d48301620b6537c52ec72978f553
URL: https://github.com/llvm/llvm-project/commit/b637519eef01d48301620b6537c52ec72978f553
DIFF: https://github.com/llvm/llvm-project/commit/b637519eef01d48301620b6537c52ec72978f553.diff
LOG: [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
Added:
Modified:
llvm/include/llvm/CodeGen/ValueTypes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/ValueTypes.h b/llvm/include/llvm/CodeGen/ValueTypes.h
index c6f8a813ca33..e4d8a04a3340 100644
--- a/llvm/include/llvm/CodeGen/ValueTypes.h
+++ b/llvm/include/llvm/CodeGen/ValueTypes.h
@@ -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;
More information about the llvm-commits
mailing list