Skip to content

Commit 2a4d170

Browse files
committed
Remove > 1 check
1 parent d85eb07 commit 2a4d170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ SmallVector<VPRegisterUsage, 8> llvm::calculateRegisterUsageForPlan(
565565
// The output from scaled phis and scaled reductions actually has
566566
// fewer lanes than the VF.
567567
ElementCount VF = VFs[J];
568-
if (unsigned ScaleFactor = getVFScaleFactor(R); ScaleFactor > 1)
568+
if (unsigned ScaleFactor = getVFScaleFactor(R))
569569
VF = VF.divideCoefficientBy(ScaleFactor);
570570
LLVM_DEBUG(if (VF != VFs[J]) {
571571
dbgs() << "LV(REG): Scaled down VF from " << VFs[J] << " to " << VF

0 commit comments

Comments
 (0)