[llvm] f9b98e3 - [LV] Remove unused LoopMiddleBlock arg from fixReductionScalarRes (NFC)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 13:47:08 PDT 2025
Author: Florian Hahn
Date: 2025-06-09T21:47:03+01:00
New Revision: f9b98e386ed2b2e2885b9e6dffceb1c915c282b8
URL: https://github.com/llvm/llvm-project/commit/f9b98e386ed2b2e2885b9e6dffceb1c915c282b8
DIFF: https://github.com/llvm/llvm-project/commit/f9b98e386ed2b2e2885b9e6dffceb1c915c282b8.diff
LOG: [LV] Remove unused LoopMiddleBlock arg from fixReductionScalarRes (NFC)
The argument isn't used, remove it.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 4671ccbb841c9..e5ffb02d3d807 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -7222,8 +7222,7 @@ static Value *getStartValueFromReductionResult(VPInstruction *RdxResult) {
// epilog loop, fix the reduction's scalar PHI node by adding the incoming value
// from the main vector loop.
static void fixReductionScalarResumeWhenVectorizingEpilog(
- VPRecipeBase *R, VPTransformState &State, BasicBlock *LoopMiddleBlock,
- BasicBlock *BypassBlock) {
+ VPRecipeBase *R, VPTransformState &State, BasicBlock *BypassBlock) {
auto *EpiRedResult = dyn_cast<VPInstruction>(R);
if (!EpiRedResult ||
(EpiRedResult->getOpcode() != VPInstruction::ComputeAnyOfResult &&
@@ -7398,10 +7397,8 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
// that case, fixReductionScalarResumeWhenVectorizingEpilog will be a
// no-op.
auto *MiddleVPBB = cast<VPBasicBlock>(ScalarPreds[0]);
- for (VPRecipeBase &R : *MiddleVPBB) {
- fixReductionScalarResumeWhenVectorizingEpilog(
- &R, State, State.CFG.VPBB2IRBB[MiddleVPBB], BypassBlock);
- }
+ for (VPRecipeBase &R : *MiddleVPBB)
+ fixReductionScalarResumeWhenVectorizingEpilog(&R, State, BypassBlock);
}
}
More information about the llvm-commits
mailing list