Skip to content

Commit 8364659

Browse files
committed
[VPlan] Remove unused Range arg from createWidenInductionRecipe (NFC).
The Range argument is not used by createWidenInductionRecipe; induction classification applies across the whole range of VFs. Remove the argument.
1 parent 25f4ead commit 8364659

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8132,8 +8132,7 @@ VPRecipeBuilder::tryToWidenMemory(Instruction *I, ArrayRef<VPValue *> Operands,
81328132
static VPWidenIntOrFpInductionRecipe *
81338133
createWidenInductionRecipes(PHINode *Phi, Instruction *PhiOrTrunc,
81348134
VPValue *Start, const InductionDescriptor &IndDesc,
8135-
VPlan &Plan, ScalarEvolution &SE, Loop &OrigLoop,
8136-
VFRange &Range) {
8135+
VPlan &Plan, ScalarEvolution &SE, Loop &OrigLoop) {
81378136
assert(IndDesc.getStartValue() ==
81388137
Phi->getIncomingValueForBlock(OrigLoop.getLoopPreheader()));
81398138
assert(SE.isLoopInvariant(IndDesc.getStep(), &OrigLoop) &&
@@ -8155,7 +8154,7 @@ VPHeaderPHIRecipe *VPRecipeBuilder::tryToOptimizeInductionPHI(
81558154
// produces its scalar and vector values.
81568155
if (auto *II = Legal->getIntOrFpInductionDescriptor(Phi))
81578156
return createWidenInductionRecipes(Phi, Phi, Operands[0], *II, Plan,
8158-
*PSE.getSE(), *OrigLoop, Range);
8157+
*PSE.getSE(), *OrigLoop);
81598158

81608159
// Check if this is pointer induction. If so, build the recipe for it.
81618160
if (auto *II = Legal->getPointerInductionDescriptor(Phi)) {
@@ -8195,7 +8194,7 @@ VPWidenIntOrFpInductionRecipe *VPRecipeBuilder::tryToOptimizeInductionTruncate(
81958194
const InductionDescriptor &II = *Legal->getIntOrFpInductionDescriptor(Phi);
81968195
VPValue *Start = Plan.getOrAddLiveIn(II.getStartValue());
81978196
return createWidenInductionRecipes(Phi, I, Start, II, Plan, *PSE.getSE(),
8198-
*OrigLoop, Range);
8197+
*OrigLoop);
81998198
}
82008199
return nullptr;
82018200
}

0 commit comments

Comments
 (0)