[PATCH] D80746: [SVE] Replace deprecated call in changeVectorElementTypeToInteger

Anna Bulanova via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 29 10:21:21 PDT 2020


bas updated this revision to Diff 267279.
bas added a comment.

Resolve merge conflicts / generate commit message


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80746/new/

https://reviews.llvm.org/D80746

Files:
  llvm/include/llvm/CodeGen/ValueTypes.h


Index: llvm/include/llvm/CodeGen/ValueTypes.h
===================================================================
--- llvm/include/llvm/CodeGen/ValueTypes.h
+++ llvm/include/llvm/CodeGen/ValueTypes.h
@@ -97,8 +97,7 @@
       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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80746.267279.patch
Type: text/x-patch
Size: 735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200529/f57f0e7b/attachment-0001.bin>


More information about the llvm-commits mailing list