Skip to content

Commit 4fed4aa

Browse files
committed
Use CreateStep
1 parent e3c2509 commit 4fed4aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2490,9 +2490,8 @@ void InnerLoopVectorizer::emitIterationCountCheck(BasicBlock *Bypass) {
24902490
ConstantInt::get(CountTy, cast<IntegerType>(CountTy)->getMask());
24912491
Value *LHS = Builder.CreateSub(MaxUIntTripCount, Count);
24922492

2493-
Value *Step = CreateStep();
24942493
// Don't execute the vector loop if (UMax - n) < (VF * UF).
2495-
CheckMinIters = Builder.CreateICmp(ICmpInst::ICMP_ULT, LHS, Step);
2494+
CheckMinIters = Builder.CreateICmp(ICmpInst::ICMP_ULT, LHS, CreateStep());
24962495
}
24972496

24982497
// Create new preheader for vector loop.

0 commit comments

Comments
 (0)