@@ -2458,12 +2458,8 @@ void InnerLoopVectorizer::createVectorIntOrFpInductionPHI(
2458
2458
}
2459
2459
2460
2460
// / Compute scalar induction steps. \p ScalarIV is the scalar induction
2461
- // / variable on which to base the steps, \p Step is the size of the step, and
2462
- // / \p EntryVal is the value from the original loop that maps to the steps.
2463
- // / Note that \p EntryVal doesn't have to be an induction variable - it
2464
- // / can also be a truncate instruction.
2461
+ // / variable on which to base the steps, \p Step is the size of the step.
2465
2462
static void buildScalarSteps (Value *ScalarIV, Value *Step,
2466
- Instruction *EntryVal,
2467
2463
const InductionDescriptor &ID, VPValue *Def,
2468
2464
VPTransformState &State) {
2469
2465
IRBuilderBase &Builder = State.Builder ;
@@ -2707,7 +2703,7 @@ void InnerLoopVectorizer::widenIntOrFpInduction(
2707
2703
// the number of instructions in the loop in the common case prior to
2708
2704
// InstCombine. We will be trading one vector extract for each scalar step.
2709
2705
Value *ScalarIV = CreateScalarIV (Step);
2710
- buildScalarSteps (ScalarIV, Step, EntryVal, ID, Def, State);
2706
+ buildScalarSteps (ScalarIV, Step, ID, Def, State);
2711
2707
}
2712
2708
}
2713
2709
@@ -9766,7 +9762,7 @@ void VPScalarIVStepsRecipe::execute(VPTransformState &State) {
9766
9762
9767
9763
Value *ScalarIV = CreateScalarIV (Step);
9768
9764
if (State.VF .isVector ()) {
9769
- buildScalarSteps (ScalarIV, Step, IV, IndDesc, this , State);
9765
+ buildScalarSteps (ScalarIV, Step, IndDesc, this , State);
9770
9766
return ;
9771
9767
}
9772
9768
0 commit comments