diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index bec200b6c97981..c6b7ca8c68c97b 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 1d182d7fd4e9c0..1ca89f5164d4d7 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 01e88b89892989..83d6823e294772 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