Skip to content

Commit 02734d9

Browse files
committed
Simplify comparison
1 parent 5af968f commit 02734d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4697,7 +4697,7 @@ InstructionCost AArch64TTIImpl::getPartialReductionCost(
46974697
// since we can't lower that type.
46984698
unsigned Scale =
46994699
AccumEVT.getScalarSizeInBits() / InputEVT.getScalarSizeInBits();
4700-
if (VFMinValue / Scale == 1)
4700+
if (VFMinValue == Scale)
47014701
return Invalid;
47024702
}
47034703
if (VF.isFixed() && (!ST->isNeonAvailable() || !ST->hasDotProd()))

0 commit comments

Comments
 (0)