Skip to content

Commit 9c82902

Browse files
committed
Avoid call to MVT::getVT()
1 parent 265694a commit 9c82902

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5175,8 +5175,7 @@ bool AArch64TTIImpl::isProfitableToSinkOperands(
51755175
return false;
51765176

51775177
// Indexed variants of Mul exist for i16 and i32 element types only.
5178-
auto ElemVT = MVT::getVT(Ty->getElementType(), /*HandleUnknown=*/true);
5179-
return (ElemVT == MVT::i16 || ElemVT == MVT::i32);
5178+
return Ty->getScalarSizeInBits() == 16 || Ty->getScalarSizeInBits() == 32;
51805179
};
51815180

51825181
int NumZExts = 0, NumSExts = 0;

0 commit comments

Comments
 (0)