@@ -9378,7 +9378,7 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range,
93789378 return !CM.requiresScalarEpilogue (VF.isVector ());
93799379 },
93809380 Range);
9381- DenseMap<VPBlockBase *, BasicBlock *> VPB2IRBB;
9381+ DenseMap<const VPBlockBase *, BasicBlock *> VPB2IRBB;
93829382 auto Plan = VPlanTransforms::buildPlainCFG (OrigLoop, *LI, VPB2IRBB);
93839383 VPlanTransforms::prepareForVectorization (
93849384 *Plan, Legal->getWidestInductionType (), PSE, RequiresScalarEpilogueCheck,
@@ -9412,7 +9412,7 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range,
94129412 }
94139413
94149414 VPRecipeBuilder RecipeBuilder (*Plan, OrigLoop, TLI, &TTI, Legal, CM, PSE,
9415- Builder, LVer);
9415+ Builder, VPB2IRBB, LVer);
94169416
94179417 // ---------------------------------------------------------------------------
94189418 // Pre-construction: record ingredients whose recipes we'll need to further
@@ -9476,7 +9476,7 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range,
94769476 // FIXME: At the moment, masks need to be placed at the beginning of the
94779477 // block, as blends introduced for phi nodes need to use it. The created
94789478 // blends should be sunk after the mask recipes.
9479- RecipeBuilder.createBlockInMask (VPB2IRBB. lookup ( VPBB) );
9479+ RecipeBuilder.createBlockInMask (VPBB);
94809480 }
94819481
94829482 // Convert input VPInstructions to widened recipes.
@@ -9681,7 +9681,7 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlan(VFRange &Range) {
96819681 assert (!OrigLoop->isInnermost ());
96829682 assert (EnableVPlanNativePath && " VPlan-native path is not enabled." );
96839683
9684- DenseMap<VPBlockBase *, BasicBlock *> VPB2IRBB;
9684+ DenseMap<const VPBlockBase *, BasicBlock *> VPB2IRBB;
96859685 auto Plan = VPlanTransforms::buildPlainCFG (OrigLoop, *LI, VPB2IRBB);
96869686 VPlanTransforms::prepareForVectorization (
96879687 *Plan, Legal->getWidestInductionType (), PSE, true , false , OrigLoop,
@@ -9702,7 +9702,7 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlan(VFRange &Range) {
97029702 // Collect mapping of IR header phis to header phi recipes, to be used in
97039703 // addScalarResumePhis.
97049704 VPRecipeBuilder RecipeBuilder (*Plan, OrigLoop, TLI, &TTI, Legal, CM, PSE,
9705- Builder, nullptr /* LVer*/ );
9705+ Builder, VPB2IRBB, nullptr /* LVer*/ );
97069706 for (auto &R : Plan->getVectorLoopRegion ()->getEntryBasicBlock ()->phis ()) {
97079707 if (isa<VPCanonicalIVPHIRecipe>(&R))
97089708 continue ;
0 commit comments