Skip to content

Commit f9b98e3

Browse files
committed
[LV] Remove unused LoopMiddleBlock arg from fixReductionScalarRes (NFC)
The argument isn't used, remove it.
1 parent d0a1dce commit f9b98e3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7222,8 +7222,7 @@ static Value *getStartValueFromReductionResult(VPInstruction *RdxResult) {
72227222
// epilog loop, fix the reduction's scalar PHI node by adding the incoming value
72237223
// from the main vector loop.
72247224
static void fixReductionScalarResumeWhenVectorizingEpilog(
7225-
VPRecipeBase *R, VPTransformState &State, BasicBlock *LoopMiddleBlock,
7226-
BasicBlock *BypassBlock) {
7225+
VPRecipeBase *R, VPTransformState &State, BasicBlock *BypassBlock) {
72277226
auto *EpiRedResult = dyn_cast<VPInstruction>(R);
72287227
if (!EpiRedResult ||
72297228
(EpiRedResult->getOpcode() != VPInstruction::ComputeAnyOfResult &&
@@ -7398,10 +7397,8 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
73987397
// that case, fixReductionScalarResumeWhenVectorizingEpilog will be a
73997398
// no-op.
74007399
auto *MiddleVPBB = cast<VPBasicBlock>(ScalarPreds[0]);
7401-
for (VPRecipeBase &R : *MiddleVPBB) {
7402-
fixReductionScalarResumeWhenVectorizingEpilog(
7403-
&R, State, State.CFG.VPBB2IRBB[MiddleVPBB], BypassBlock);
7404-
}
7400+
for (VPRecipeBase &R : *MiddleVPBB)
7401+
fixReductionScalarResumeWhenVectorizingEpilog(&R, State, BypassBlock);
74057402
}
74067403
}
74077404

0 commit comments

Comments
 (0)