[llvm] 9e46866 - [LV] Remove dead EntryVal argument from buildScalarSteps (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 2 06:59:52 PST 2022
Author: Florian Hahn
Date: 2022-03-02T14:59:22Z
New Revision: 9e46866c0c58d8d487db6d6ae3fae1da4edd0686
URL: https://github.com/llvm/llvm-project/commit/9e46866c0c58d8d487db6d6ae3fae1da4edd0686
DIFF: https://github.com/llvm/llvm-project/commit/9e46866c0c58d8d487db6d6ae3fae1da4edd0686.diff
LOG: [LV] Remove dead EntryVal argument from buildScalarSteps (NFC).
The EntryVal argument is not needed after recent refactoring. Remove it.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 43488b98fe0ac..d56d6c4cd426d 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -2458,12 +2458,8 @@ void InnerLoopVectorizer::createVectorIntOrFpInductionPHI(
}
/// Compute scalar induction steps. \p ScalarIV is the scalar induction
-/// variable on which to base the steps, \p Step is the size of the step, and
-/// \p EntryVal is the value from the original loop that maps to the steps.
-/// Note that \p EntryVal doesn't have to be an induction variable - it
-/// can also be a truncate instruction.
+/// variable on which to base the steps, \p Step is the size of the step.
static void buildScalarSteps(Value *ScalarIV, Value *Step,
- Instruction *EntryVal,
const InductionDescriptor &ID, VPValue *Def,
VPTransformState &State) {
IRBuilderBase &Builder = State.Builder;
@@ -2707,7 +2703,7 @@ void InnerLoopVectorizer::widenIntOrFpInduction(
// the number of instructions in the loop in the common case prior to
// InstCombine. We will be trading one vector extract for each scalar step.
Value *ScalarIV = CreateScalarIV(Step);
- buildScalarSteps(ScalarIV, Step, EntryVal, ID, Def, State);
+ buildScalarSteps(ScalarIV, Step, ID, Def, State);
}
}
@@ -9766,7 +9762,7 @@ void VPScalarIVStepsRecipe::execute(VPTransformState &State) {
Value *ScalarIV = CreateScalarIV(Step);
if (State.VF.isVector()) {
- buildScalarSteps(ScalarIV, Step, IV, IndDesc, this, State);
+ buildScalarSteps(ScalarIV, Step, IndDesc, this, State);
return;
}
More information about the llvm-commits
mailing list