We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 265694a commit 9c82902Copy full SHA for 9c82902
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -5175,8 +5175,7 @@ bool AArch64TTIImpl::isProfitableToSinkOperands(
5175
return false;
5176
5177
// 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);
+ return Ty->getScalarSizeInBits() == 16 || Ty->getScalarSizeInBits() == 32;
5180
};
5181
5182
int NumZExts = 0, NumSExts = 0;
0 commit comments