Skip to content

Commit 14cc9c2

Browse files
committed
Comment for all true condition. nfc
1 parent 5b6b2a1 commit 14cc9c2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,9 +1391,12 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
13911391
if (!match(VPI, m_Select(m_Specific(HeaderMask), m_VPValue(LHS),
13921392
m_VPValue(RHS))))
13931393
return nullptr;
1394-
VPValue *Cond = Plan.getOrAddLiveIn(ConstantInt::getTrue(Ctx));
1394+
// Use all true as the condition because this transformation is
1395+
// limited to selects whose condition is a header mask.
1396+
VPValue *AllTrue =
1397+
Plan.getOrAddLiveIn(ConstantInt::getTrue(Ctx));
13951398
return new VPInstruction(VPInstruction::MergeUntilPivot,
1396-
{Cond, LHS, RHS, &EVL},
1399+
{AllTrue, LHS, RHS, &EVL},
13971400
VPI->getDebugLoc());
13981401
})
13991402
.Default([&](VPRecipeBase *R) { return nullptr; });

0 commit comments

Comments
 (0)