From b637519eef01d48301620b6537c52ec72978f553 Mon Sep 17 00:00:00 2001 From: Anna Bulanova Date: Fri, 29 May 2020 13:09:52 -0400 Subject: [PATCH] [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 --- llvm/include/llvm/CodeGen/ValueTypes.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;