[llvm] 9ee4a74 - [LV] Remove unused MiddleVPBB argument from addUsersInExitBlock (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 17 02:36:39 PDT 2023
Author: Florian Hahn
Date: 2023-08-17T10:36:12+01:00
New Revision: 9ee4a740e3265bdce1f2246d9885be8b4ec988c0
URL: https://github.com/llvm/llvm-project/commit/9ee4a740e3265bdce1f2246d9885be8b4ec988c0
DIFF: https://github.com/llvm/llvm-project/commit/9ee4a740e3265bdce1f2246d9885be8b4ec988c0.diff
LOG: [LV] Remove unused MiddleVPBB argument from addUsersInExitBlock (NFC).
The argument is no longer 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 bc5dff94325312..60106308f1fbd6 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -8819,8 +8819,7 @@ static void addCanonicalIVRecipes(VPlan &Plan, Type *IdxTy, DebugLoc DL,
// Add exit values to \p Plan. VPLiveOuts are added for each LCSSA phi in the
// original exit block.
-static void addUsersInExitBlock(VPBasicBlock *HeaderVPBB,
- VPBasicBlock *MiddleVPBB, Loop *OrigLoop,
+static void addUsersInExitBlock(VPBasicBlock *HeaderVPBB, Loop *OrigLoop,
VPlan &Plan) {
BasicBlock *ExitBB = OrigLoop->getUniqueExitBlock();
BasicBlock *ExitingBB = OrigLoop->getExitingBlock();
@@ -8985,7 +8984,7 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
// and there is nothing to fix from vector loop; phis should have incoming
// from scalar loop only.
} else
- addUsersInExitBlock(HeaderVPBB, MiddleVPBB, OrigLoop, *Plan);
+ addUsersInExitBlock(HeaderVPBB, OrigLoop, *Plan);
assert(isa<VPRegionBlock>(Plan->getVectorLoopRegion()) &&
!Plan->getVectorLoopRegion()->getEntryBasicBlock()->empty() &&
More information about the llvm-commits
mailing list