Skip to content

Commit 881c8f0

Browse files
committed
doc the code.
1 parent d376567 commit 881c8f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,10 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
14961496
})
14971497
.Case<VPInstruction>([&](VPInstruction *VPI) -> VPRecipeBase * {
14981498
VPValue *LHS, *RHS;
1499+
// Transform predicated reduction select
1500+
// select(header_mask, LHS, RHS)
1501+
// into vector predication merge.
1502+
// vp.merge(all-true, LHS, RHS, EVL)
14991503
if (!match(VPI, m_Select(m_Specific(HeaderMask), m_VPValue(LHS),
15001504
m_VPValue(RHS))))
15011505
return nullptr;

0 commit comments

Comments
 (0)