Skip to content

Commit dc2da76

Browse files
committed
doc the code.
1 parent 1f47cca commit dc2da76

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
@@ -1397,6 +1397,10 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
13971397
})
13981398
.Case<VPInstruction>([&](VPInstruction *VPI) -> VPRecipeBase * {
13991399
VPValue *LHS, *RHS;
1400+
// Transform predicated reduction select
1401+
// select(header_mask, LHS, RHS)
1402+
// into vector predication merge.
1403+
// vp.merge(all-true, LHS, RHS, EVL)
14001404
if (!match(VPI, m_Select(m_Specific(HeaderMask), m_VPValue(LHS),
14011405
m_VPValue(RHS))))
14021406
return nullptr;

0 commit comments

Comments
 (0)