Skip to content

Commit 9e46866

Browse files
committed
[LV] Remove dead EntryVal argument from buildScalarSteps (NFC).
The EntryVal argument is not needed after recent refactoring. Remove it.
1 parent 76f243b commit 9e46866

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,12 +2458,8 @@ void InnerLoopVectorizer::createVectorIntOrFpInductionPHI(
24582458
}
24592459

24602460
/// 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.
24652462
static void buildScalarSteps(Value *ScalarIV, Value *Step,
2466-
Instruction *EntryVal,
24672463
const InductionDescriptor &ID, VPValue *Def,
24682464
VPTransformState &State) {
24692465
IRBuilderBase &Builder = State.Builder;
@@ -2707,7 +2703,7 @@ void InnerLoopVectorizer::widenIntOrFpInduction(
27072703
// the number of instructions in the loop in the common case prior to
27082704
// InstCombine. We will be trading one vector extract for each scalar step.
27092705
Value *ScalarIV = CreateScalarIV(Step);
2710-
buildScalarSteps(ScalarIV, Step, EntryVal, ID, Def, State);
2706+
buildScalarSteps(ScalarIV, Step, ID, Def, State);
27112707
}
27122708
}
27132709

@@ -9766,7 +9762,7 @@ void VPScalarIVStepsRecipe::execute(VPTransformState &State) {
97669762

97679763
Value *ScalarIV = CreateScalarIV(Step);
97689764
if (State.VF.isVector()) {
9769-
buildScalarSteps(ScalarIV, Step, IV, IndDesc, this, State);
9765+
buildScalarSteps(ScalarIV, Step, IndDesc, this, State);
97709766
return;
97719767
}
97729768

0 commit comments

Comments
 (0)