@@ -1231,7 +1231,7 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
12311231 }
12321232}
12331233
1234- void VPlanTransforms::simplifyRecipes (VPlan &Plan, Type &CanonicalIVTy ) {
1234+ void VPlanTransforms::simplifyRecipes (VPlan &Plan) {
12351235 ReversePostOrderTraversal<VPBlockDeepTraversalWrapper<VPBlockBase *>> RPOT (
12361236 Plan.getEntry ());
12371237 VPTypeAnalysis TypeInfo (Plan);
@@ -1498,7 +1498,6 @@ static bool simplifyBranchConditionForVFAndUF(VPlan &Plan, ElementCount BestVF,
14981498 // the region, otherwise replace the terminator controlling the latch with
14991499 // (BranchOnCond true).
15001500 auto *Header = cast<VPBasicBlock>(VectorRegion->getEntry ());
1501- auto *CanIVTy = Plan.getCanonicalIV ()->getScalarType ();
15021501 if (all_of (Header->phis (),
15031502 IsaPred<VPCanonicalIVPHIRecipe, VPEVLBasedIVPHIRecipe,
15041503 VPFirstOrderRecurrencePHIRecipe, VPPhi>)) {
@@ -1518,7 +1517,7 @@ static bool simplifyBranchConditionForVFAndUF(VPlan &Plan, ElementCount BestVF,
15181517
15191518 VPBlockUtils::connectBlocks (Preheader, Header);
15201519 VPBlockUtils::connectBlocks (ExitingVPBB, Exit);
1521- VPlanTransforms::simplifyRecipes (Plan, *CanIVTy );
1520+ VPlanTransforms::simplifyRecipes (Plan);
15221521 } else {
15231522 // The vector region contains header phis for which we cannot remove the
15241523 // loop region yet.
@@ -1932,13 +1931,13 @@ void VPlanTransforms::optimize(VPlan &Plan) {
19321931 runPass (removeRedundantCanonicalIVs, Plan);
19331932 runPass (removeRedundantInductionCasts, Plan);
19341933
1935- runPass (simplifyRecipes, Plan, *Plan. getCanonicalIV ()-> getScalarType () );
1934+ runPass (simplifyRecipes, Plan);
19361935 runPass (simplifyBlends, Plan);
19371936 runPass (removeDeadRecipes, Plan);
19381937 runPass (narrowToSingleScalarRecipes, Plan);
19391938 runPass (legalizeAndOptimizeInductions, Plan);
19401939 runPass (removeRedundantExpandSCEVRecipes, Plan);
1941- runPass (simplifyRecipes, Plan, *Plan. getCanonicalIV ()-> getScalarType () );
1940+ runPass (simplifyRecipes, Plan);
19421941 runPass (removeBranchOnConst, Plan);
19431942 runPass (removeDeadRecipes, Plan);
19441943
@@ -2853,8 +2852,7 @@ void VPlanTransforms::dissolveLoopRegions(VPlan &Plan) {
28532852 R->dissolveToCFGLoop ();
28542853}
28552854
2856- void VPlanTransforms::convertToConcreteRecipes (VPlan &Plan,
2857- Type &CanonicalIVTy) {
2855+ void VPlanTransforms::convertToConcreteRecipes (VPlan &Plan) {
28582856 VPTypeAnalysis TypeInfo (Plan);
28592857 SmallVector<VPRecipeBase *> ToRemove;
28602858 for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(
0 commit comments