Skip to content

Commit c3ec44a

Browse files
committed
[VPlan] Improve comment (NFC)
1 parent 3112715 commit c3ec44a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,11 +2121,10 @@ static void licm(VPlan &Plan) {
21212121

21222122
// Hoist any loop invariant recipes from the vector loop region to the
21232123
// preheader. Preform a shallow traversal of the vector loop region, to
2124-
// exclude recipes in replicate regions.
2124+
// exclude recipes in replicate regions. Since the top-level blocks in the
2125+
// vector loop region are guaranteed to execute if the vector pre-header is,
2126+
// we don't need to check speculation safety.
21252127
VPRegionBlock *LoopRegion = Plan.getVectorLoopRegion();
2126-
2127-
// Since the vector loop region is guaranteed to execute, if the vector
2128-
// pre-header is, we don't need to check speculation safety.
21292128
assert(Preheader->getSingleSuccessor() == LoopRegion &&
21302129
"Expected vector prehader's successor to be the vector loop region");
21312130
for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(

0 commit comments

Comments
 (0)