Skip to content

Commit e6e3f94

Browse files
committed
[VPlan] Re-add clarifying comment regarding part to extract. (NFC)
Re-add and emphasize comment regarding extracting from the last part, as suggested post-commit in #171145.
1 parent 333ee93 commit e6e3f94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanUnroll.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ void UnrollState::unrollBlock(VPBlockBase *VPB) {
383383
continue;
384384
}
385385
}
386+
// For vector VF, the penultimate element is always extracted from the last part.
386387
if (match(&R, m_ExtractLastLaneOfLastPart(m_VPValue(Op0))) ||
387388
match(&R, m_ExtractPenultimateElement(m_VPValue(Op0)))) {
388389
addUniformForAllParts(cast<VPSingleDefRecipe>(&R));

0 commit comments

Comments
 (0)