Skip to content

Commit 7bfd0b2

Browse files
committed
Comment for all true condition. nfc
1 parent e124f9f commit 7bfd0b2

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
@@ -1390,9 +1390,12 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
13901390
if (!match(VPI, m_Select(m_Specific(HeaderMask), m_VPValue(LHS),
13911391
m_VPValue(RHS))))
13921392
return nullptr;
1393-
VPValue *Cond = Plan.getOrAddLiveIn(ConstantInt::getTrue(Ctx));
1393+
// Use all true as the condition because this transformation is
1394+
// limited to selects whose condition is a header mask.
1395+
VPValue *AllTrue =
1396+
Plan.getOrAddLiveIn(ConstantInt::getTrue(Ctx));
13941397
return new VPInstruction(VPInstruction::MergeUntilPivot,
1395-
{Cond, LHS, RHS, &EVL},
1398+
{AllTrue, LHS, RHS, &EVL},
13961399
VPI->getDebugLoc());
13971400
})
13981401
.Default([&](VPRecipeBase *R) { return nullptr; });

0 commit comments

Comments
 (0)