Skip to content

Commit 7fe67b2

Browse files
committed
Only care about imm8 if the VF is fixed-width
1 parent 960a50d commit 7fe67b2

File tree

2 files changed

+117
-91
lines changed

2 files changed

+117
-91
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5344,10 +5344,10 @@ InstructionCost AArch64TTIImpl::getPartialReductionCost(
53445344
} else
53455345
return Invalid;
53465346

5347-
// AArch64 supports lowering mixed extensions to a usdot but only if the
5348-
// i8mm feature is available.
5347+
// AArch64 supports lowering mixed fixed-width extensions to a usdot but only
5348+
// if the i8mm feature is available.
53495349
if (OpAExtend == TTI::PR_None || OpBExtend == TTI::PR_None ||
5350-
(OpAExtend != OpBExtend && !ST->hasMatMulInt8()))
5350+
(OpAExtend != OpBExtend && VF.isFixed() && !ST->hasMatMulInt8()))
53515351
return Invalid;
53525352

53535353
if (!BinOp || *BinOp != Instruction::Mul)

0 commit comments

Comments
 (0)