[PATCH] D81927: [CodeGen] Fix warnings in getVectorElementCount()

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 18 00:30:59 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG3ffb44b4481f: [CodeGen] Fix warnings in getVectorElementCount() (authored by david-arm).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81927

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
@@ -299,7 +299,7 @@
       if (isSimple())
         return V.getVectorElementCount();
 
-      return {getExtendedVectorNumElements(), isExtendedScalableVector()};
+      return getExtendedVectorElementCount();
     }
 
     /// Given a vector type, return the minimum number of elements it contains.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81927.271596.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200618/6c1fa479/attachment.bin>


More information about the llvm-commits mailing list