[llvm] 763f2bd - [VPlan] Remove dead OrigLoop argument from removeDeadRecipes (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 11 15:41:23 PDT 2022
Author: Florian Hahn
Date: 2022-06-11T23:36:47+01:00
New Revision: 763f2bdba521645eef3eb0b3e4359c839fbe3a12
URL: https://github.com/llvm/llvm-project/commit/763f2bdba521645eef3eb0b3e4359c839fbe3a12
DIFF: https://github.com/llvm/llvm-project/commit/763f2bdba521645eef3eb0b3e4359c839fbe3a12.diff
LOG: [VPlan] Remove dead OrigLoop argument from removeDeadRecipes (NFC).
The use of the argument has been remove a while ago. Remove the dead
argument.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index bec200b6c9798..c6b7ca8c68c97 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -9028,7 +9028,7 @@ VPlanPtr LoopVectorizationPlanner::buildVPlanWithVPRecipes(
VPlanTransforms::optimizeInductions(*Plan, *PSE.getSE());
VPlanTransforms::sinkScalarOperands(*Plan);
VPlanTransforms::mergeReplicateRegions(*Plan);
- VPlanTransforms::removeDeadRecipes(*Plan, *OrigLoop);
+ VPlanTransforms::removeDeadRecipes(*Plan);
VPlanTransforms::removeRedundantExpandSCEVRecipes(*Plan);
std::string PlanName;
diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 1d182d7fd4e9c..1ca89f5164d4d 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -361,7 +361,7 @@ void VPlanTransforms::removeRedundantCanonicalIVs(VPlan &Plan) {
}
}
-void VPlanTransforms::removeDeadRecipes(VPlan &Plan, Loop &OrigLoop) {
+void VPlanTransforms::removeDeadRecipes(VPlan &Plan) {
VPBasicBlock *Header = Plan.getVectorLoopRegion()->getEntryBasicBlock();
// Remove dead recipes in header block. The recipes in the block are processed
// in reverse order, to catch chains of dead recipes.
diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.h b/llvm/lib/Transforms/Vectorize/VPlanTransforms.h
index 01e88b8989298..83d6823e29477 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.h
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.h
@@ -52,7 +52,7 @@ struct VPlanTransforms {
/// Try to remove dead recipes. At the moment, only dead header recipes are
/// removed.
- static void removeDeadRecipes(VPlan &Plan, Loop &OrigLoop);
+ static void removeDeadRecipes(VPlan &Plan);
/// If any user of a VPWidenIntOrFpInductionRecipe needs scalar values,
/// provide them by building scalar steps off of the canonical scalar IV and
More information about the llvm-commits
mailing list