Skip to content

Commit 7259446

Browse files
committed
[VPlan] Swap || branches
1 parent c003a70 commit 7259446

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ static bool optimizeVectorInductionWidthForTCAndVFUF(VPlan &Plan,
14791479
return false;
14801480

14811481
const APInt *TC;
1482-
if (!match(Plan.getTripCount(), m_APInt(TC)) || !BestVF.isFixed())
1482+
if (!BestVF.isFixed() || !match(Plan.getTripCount(), m_APInt(TC)))
14831483
return false;
14841484

14851485
// Calculate the minimum power-of-2 bit width that can fit the known TC, VF

0 commit comments

Comments
 (0)