Skip to content

Commit d34f0bf

Browse files
committed
!fixup Use VFxStep in additional place.
1 parent f256d83 commit d34f0bf

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
@@ -829,8 +829,7 @@ Value *createStepForVF(IRBuilderBase &B, Type *Ty, ElementCount VF,
829829
if (VF.isScalable() && isPowerOf2_64(Step)) {
830830
return B.CreateShl(
831831
B.CreateVScale(Ty),
832-
ConstantInt::get(Ty, Log2_64((VF * Step).getKnownMinValue())), "",
833-
true);
832+
ConstantInt::get(Ty, Log2_64(VFxStep.getKnownMinValue())), "", true);
834833
}
835834
return B.CreateElementCount(Ty, VFxStep);
836835
}

0 commit comments

Comments
 (0)