@@ -1231,7 +1231,7 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
1231
1231
}
1232
1232
}
1233
1233
1234
- void VPlanTransforms::simplifyRecipes (VPlan &Plan, Type &CanonicalIVTy ) {
1234
+ void VPlanTransforms::simplifyRecipes (VPlan &Plan) {
1235
1235
ReversePostOrderTraversal<VPBlockDeepTraversalWrapper<VPBlockBase *>> RPOT (
1236
1236
Plan.getEntry ());
1237
1237
VPTypeAnalysis TypeInfo (Plan);
@@ -1498,7 +1498,6 @@ static bool simplifyBranchConditionForVFAndUF(VPlan &Plan, ElementCount BestVF,
1498
1498
// the region, otherwise replace the terminator controlling the latch with
1499
1499
// (BranchOnCond true).
1500
1500
auto *Header = cast<VPBasicBlock>(VectorRegion->getEntry ());
1501
- auto *CanIVTy = Plan.getCanonicalIV ()->getScalarType ();
1502
1501
if (all_of (Header->phis (),
1503
1502
IsaPred<VPCanonicalIVPHIRecipe, VPEVLBasedIVPHIRecipe,
1504
1503
VPFirstOrderRecurrencePHIRecipe, VPPhi>)) {
@@ -1518,7 +1517,7 @@ static bool simplifyBranchConditionForVFAndUF(VPlan &Plan, ElementCount BestVF,
1518
1517
1519
1518
VPBlockUtils::connectBlocks (Preheader, Header);
1520
1519
VPBlockUtils::connectBlocks (ExitingVPBB, Exit);
1521
- VPlanTransforms::simplifyRecipes (Plan, *CanIVTy );
1520
+ VPlanTransforms::simplifyRecipes (Plan);
1522
1521
} else {
1523
1522
// The vector region contains header phis for which we cannot remove the
1524
1523
// loop region yet.
@@ -1932,13 +1931,13 @@ void VPlanTransforms::optimize(VPlan &Plan) {
1932
1931
runPass (removeRedundantCanonicalIVs, Plan);
1933
1932
runPass (removeRedundantInductionCasts, Plan);
1934
1933
1935
- runPass (simplifyRecipes, Plan, *Plan. getCanonicalIV ()-> getScalarType () );
1934
+ runPass (simplifyRecipes, Plan);
1936
1935
runPass (simplifyBlends, Plan);
1937
1936
runPass (removeDeadRecipes, Plan);
1938
1937
runPass (narrowToSingleScalarRecipes, Plan);
1939
1938
runPass (legalizeAndOptimizeInductions, Plan);
1940
1939
runPass (removeRedundantExpandSCEVRecipes, Plan);
1941
- runPass (simplifyRecipes, Plan, *Plan. getCanonicalIV ()-> getScalarType () );
1940
+ runPass (simplifyRecipes, Plan);
1942
1941
runPass (removeBranchOnConst, Plan);
1943
1942
runPass (removeDeadRecipes, Plan);
1944
1943
@@ -2853,8 +2852,7 @@ void VPlanTransforms::dissolveLoopRegions(VPlan &Plan) {
2853
2852
R->dissolveToCFGLoop ();
2854
2853
}
2855
2854
2856
- void VPlanTransforms::convertToConcreteRecipes (VPlan &Plan,
2857
- Type &CanonicalIVTy) {
2855
+ void VPlanTransforms::convertToConcreteRecipes (VPlan &Plan) {
2858
2856
VPTypeAnalysis TypeInfo (Plan);
2859
2857
SmallVector<VPRecipeBase *> ToRemove;
2860
2858
for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(
0 commit comments