Skip to content

Commit 8a89ff3

Browse files
committed
!fixup address latest comments, thanks
1 parent 41e31e9 commit 8a89ff3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2444,6 +2444,8 @@ void InnerLoopVectorizer::emitIterationCountCheck(BasicBlock *Bypass) {
24442444
Value *Step = CreateStep();
24452445
ScalarEvolution &SE = *PSE.getSE();
24462446
// Check if we can prove that the trip count is >= the step.
2447+
// TODO: Emit unconditional branch to vector preheader instead of
2448+
// conditional branch with known condition.
24472449
const SCEV *TripCountSCEV = SE.getSCEV(Count);
24482450
if (SE.isKnownPredicate(CmpInst::getInversePredicate(P),
24492451
SE.applyLoopGuards(TripCountSCEV, OrigLoop),

0 commit comments

Comments
 (0)