[PATCH] D79819: [SVE] Remove usages of VectorType::getNumElements() from Hexagon

Christopher Tetreault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 17:29:56 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG2a77d1d0ed1f: [SVE] Remove usages of VectorType::getNumElements() from Hexagon (authored by ctetreau).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79819

Files:
  llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp


Index: llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
===================================================================
--- llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
+++ llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
@@ -60,7 +60,7 @@
 }
 
 unsigned HexagonTTIImpl::getTypeNumElements(Type *Ty) const {
-  if (auto *VTy = dyn_cast<VectorType>(Ty))
+  if (auto *VTy = dyn_cast<FixedVectorType>(Ty))
     return VTy->getNumElements();
   assert((Ty->isIntegerTy() || Ty->isFloatingPointTy()) &&
          "Expecting scalar type");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79819.263895.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200514/bb9de6de/attachment-0001.bin>


More information about the llvm-commits mailing list