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 6c2f847 commit 8ff27bbCopy full SHA for 8ff27bb
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -3364,7 +3364,7 @@ void VPWidenPointerInductionRecipe::execute(VPTransformState &State) {
3364
if (CurrentPart == 0) {
3365
// The recipe represents the first part of the pointer induction. Create the
3366
// GEP to increment the phi across all unrolled parts.
3367
- unsigned UF = CurrentPart == 0 ? getParent()->getPlan()->getUF() : 1;
+ unsigned UF = getParent()->getPlan()->getUF();
3368
Value *NumUnrolledElems =
3369
State.Builder.CreateMul(RuntimeVF, ConstantInt::get(PhiType, UF));
3370
0 commit comments