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 e3c2509 commit 4fed4aaCopy full SHA for 4fed4aa
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -2490,9 +2490,8 @@ void InnerLoopVectorizer::emitIterationCountCheck(BasicBlock *Bypass) {
2490
ConstantInt::get(CountTy, cast<IntegerType>(CountTy)->getMask());
2491
Value *LHS = Builder.CreateSub(MaxUIntTripCount, Count);
2492
2493
- Value *Step = CreateStep();
2494
// Don't execute the vector loop if (UMax - n) < (VF * UF).
2495
- CheckMinIters = Builder.CreateICmp(ICmpInst::ICMP_ULT, LHS, Step);
+ CheckMinIters = Builder.CreateICmp(ICmpInst::ICMP_ULT, LHS, CreateStep());
2496
}
2497
2498
// Create new preheader for vector loop.
0 commit comments