Skip to content

Commit b87cf14

Browse files
committed
!fixup address comments, thanks!
1 parent 4e5c743 commit b87cf14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,6 +2429,10 @@ InnerLoopVectorizer::getOrCreateVectorTripCount(BasicBlock *InsertBlock) {
24292429
return VectorTripCount;
24302430
}
24312431

2432+
/// Helper to connect both the vector and scalar preheaders to the vector
2433+
/// preheader's predecessor. This is used when adjusting \p Plan during skeleton
2434+
/// creation, i.e. adjusting the plan after introducing an initial runtime
2435+
/// check.
24322436
static void connectScalarPreheaderInVPlan(VPlan &Plan) {
24332437
VPBlockBase *VectorPH = Plan.getVectorPreheader();
24342438
VPBlockBase *ScalarPH = Plan.getScalarPreheader();

0 commit comments

Comments
 (0)