Skip to content

Commit 18c611e

Browse files
[SVE] Remove calls to isScalable from Hexagon
Reviewers: efriedma, sdesmalen, kparzysz, colinl Reviewed By: kparzysz Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D77757
1 parent 5a159ed commit 18c611e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ bool HexagonTTIImpl::useHVX() const {
4545

4646
bool HexagonTTIImpl::isTypeForHVX(Type *VecTy) const {
4747
assert(VecTy->isVectorTy());
48-
if (cast<VectorType>(VecTy)->isScalable())
48+
if (isa<ScalableVectorType>(VecTy))
4949
return false;
5050
// Avoid types like <2 x i32*>.
5151
if (!cast<VectorType>(VecTy)->getElementType()->isIntegerTy())

0 commit comments

Comments
 (0)