Skip to content

Commit 7cce38b

Browse files
committed
[VPlan] Remove dead SE argument from handleUncountableEarlyExit (NFC).
ScalarEvolution is not used by the function, remove the dead arg.
1 parent a9d93ec commit 7cce38b

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9661,8 +9661,8 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
96619661
if (auto *UncountableExitingBlock =
96629662
Legal->getUncountableEarlyExitingBlock()) {
96639663
VPlanTransforms::runPass(VPlanTransforms::handleUncountableEarlyExit, *Plan,
9664-
*PSE.getSE(), OrigLoop, UncountableExitingBlock,
9665-
RecipeBuilder, Range);
9664+
OrigLoop, UncountableExitingBlock, RecipeBuilder,
9665+
Range);
96669666
}
96679667
DenseMap<VPValue *, VPValue *> IVEndValues;
96689668
addScalarResumePhis(RecipeBuilder, *Plan, IVEndValues);

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,9 +2464,8 @@ void VPlanTransforms::convertToConcreteRecipes(VPlan &Plan,
24642464
}
24652465

24662466
void VPlanTransforms::handleUncountableEarlyExit(
2467-
VPlan &Plan, ScalarEvolution &SE, Loop *OrigLoop,
2468-
BasicBlock *UncountableExitingBlock, VPRecipeBuilder &RecipeBuilder,
2469-
VFRange &Range) {
2467+
VPlan &Plan, Loop *OrigLoop, BasicBlock *UncountableExitingBlock,
2468+
VPRecipeBuilder &RecipeBuilder, VFRange &Range) {
24702469
VPRegionBlock *LoopRegion = Plan.getVectorLoopRegion();
24712470
auto *LatchVPBB = cast<VPBasicBlock>(LoopRegion->getExiting());
24722471
VPBuilder Builder(LatchVPBB->getTerminator());

llvm/lib/Transforms/Vectorize/VPlanTransforms.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ struct VPlanTransforms {
175175
/// exit conditions
176176
/// * splitting the original middle block to branch to the early exit block
177177
/// if taken.
178-
static void handleUncountableEarlyExit(VPlan &Plan, ScalarEvolution &SE,
179-
Loop *OrigLoop,
178+
static void handleUncountableEarlyExit(VPlan &Plan, Loop *OrigLoop,
180179
BasicBlock *UncountableExitingBlock,
181180
VPRecipeBuilder &RecipeBuilder,
182181
VFRange &Range);

0 commit comments

Comments
 (0)