Skip to content

Commit 906f598

Browse files
committed
[VPlan] Remove dead IsEpilogueVec argument from prepareToExecute (NFC).
1 parent 381efa4 commit 906f598

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7773,9 +7773,9 @@ SCEV2ValueTy LoopVectorizationPlanner::executePlan(
77737773
//===------------------------------------------------===//
77747774

77757775
// 2. Copy and widen instructions from the old loop into the new loop.
7776-
BestVPlan.prepareToExecute(
7777-
ILV.getTripCount(), ILV.getOrCreateVectorTripCount(nullptr),
7778-
CanonicalIVStartValue, State, IsEpilogueVectorization);
7776+
BestVPlan.prepareToExecute(ILV.getTripCount(),
7777+
ILV.getOrCreateVectorTripCount(nullptr),
7778+
CanonicalIVStartValue, State);
77797779

77807780
BestVPlan.execute(&State);
77817781

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,7 @@ VPlanPtr VPlan::createInitialVPlan(const SCEV *TripCount, ScalarEvolution &SE) {
724724

725725
void VPlan::prepareToExecute(Value *TripCountV, Value *VectorTripCountV,
726726
Value *CanonicalIVStartValue,
727-
VPTransformState &State,
728-
bool IsEpilogueVectorization) {
727+
VPTransformState &State) {
729728
// Check if the backedge taken count is needed, and if so build it.
730729
if (BackedgeTakenCount && BackedgeTakenCount->getNumUsers()) {
731730
IRBuilder<> Builder(State.CFG.PrevBB->getTerminator());

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,8 +2571,7 @@ class VPlan {
25712571

25722572
/// Prepare the plan for execution, setting up the required live-in values.
25732573
void prepareToExecute(Value *TripCount, Value *VectorTripCount,
2574-
Value *CanonicalIVStartValue, VPTransformState &State,
2575-
bool IsEpilogueVectorization);
2574+
Value *CanonicalIVStartValue, VPTransformState &State);
25762575

25772576
/// Generate the IR code for this VPlan.
25782577
void execute(VPTransformState *State);

0 commit comments

Comments
 (0)