We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41e31e9 commit 8a89ff3Copy full SHA for 8a89ff3
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -2444,6 +2444,8 @@ void InnerLoopVectorizer::emitIterationCountCheck(BasicBlock *Bypass) {
2444
Value *Step = CreateStep();
2445
ScalarEvolution &SE = *PSE.getSE();
2446
// 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.
2449
const SCEV *TripCountSCEV = SE.getSCEV(Count);
2450
if (SE.isKnownPredicate(CmpInst::getInversePredicate(P),
2451
SE.applyLoopGuards(TripCountSCEV, OrigLoop),
0 commit comments