[PATCH] D79819: [SVE] Remove usages of VectorType::getNumElements() from Hexagon
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 12 16:09:51 PDT 2020
ctetreau created this revision.
Herald added subscribers: llvm-commits, psnobl, rkruppe, hiraditya, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: LLVM.
ctetreau added reviewers: kmclaughlin, sdesmalen, kparzysz.
Repository:
rG LLVM Github Monorepo
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.263549.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200512/b2d77106/attachment-0001.bin>
More information about the llvm-commits
mailing list