Skip to content

Commit cda0cb3

Browse files
authored
[NFC][LoopVectorize] Remove unused argument from fixupIVUsers (#109789)
The VectorHeader argument passed to fixupIVUsers is unused and can be removed.
1 parent 4f90e75 commit cda0cb3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ class InnerLoopVectorizer {
541541
/// Set up the values of the IVs correctly when exiting the vector loop.
542542
void fixupIVUsers(PHINode *OrigPhi, const InductionDescriptor &II,
543543
Value *VectorTripCount, Value *EndValue,
544-
BasicBlock *MiddleBlock, BasicBlock *VectorHeader,
545-
VPlan &Plan, VPTransformState &State);
544+
BasicBlock *MiddleBlock, VPlan &Plan,
545+
VPTransformState &State);
546546

547547
/// Iteratively sink the scalarized operands of a predicated instruction into
548548
/// the block that was created for it.
@@ -2742,8 +2742,7 @@ InnerLoopVectorizer::createVectorizedLoopSkeleton(
27422742
void InnerLoopVectorizer::fixupIVUsers(PHINode *OrigPhi,
27432743
const InductionDescriptor &II,
27442744
Value *VectorTripCount, Value *EndValue,
2745-
BasicBlock *MiddleBlock,
2746-
BasicBlock *VectorHeader, VPlan &Plan,
2745+
BasicBlock *MiddleBlock, VPlan &Plan,
27472746
VPTransformState &State) {
27482747
// There are two kinds of external IV usages - those that use the value
27492748
// computed in the last iteration (the PHI) and those that use the penultimate
@@ -2954,8 +2953,7 @@ void InnerLoopVectorizer::fixVectorizedLoop(VPTransformState &State,
29542953
for (const auto &Entry : Legal->getInductionVars())
29552954
fixupIVUsers(Entry.first, Entry.second,
29562955
getOrCreateVectorTripCount(VectorLoop->getLoopPreheader()),
2957-
IVEndValues[Entry.first], LoopMiddleBlock,
2958-
VectorLoop->getHeader(), Plan, State);
2956+
IVEndValues[Entry.first], LoopMiddleBlock, Plan, State);
29592957
}
29602958

29612959
// Fix live-out phis not already fixed earlier.

0 commit comments

Comments
 (0)