@@ -52,20 +52,19 @@ struct VPlanTransforms {
5252 verifyVPlanIsValid (Plan);
5353 }
5454
55- // / Introduce the top-level VPRegionBlock for the main loop in \p Plan. Coming
56- // / into this function, \p Plan's top-level loop is modeled using a plain CFG.
57- // / This transform wraps the plain CFG of the top-level loop within a
58- // / VPRegionBlock and creates a VPValue expression for the original trip
59- // / count. It will also introduce a dedicated VPBasicBlock for the vector
60- // / pre-header as well a VPBasicBlock as exit block of the region
61- // / (middle.block). If a check is needed to guard executing the scalar
55+ // / Replace loops in \p Plan's flat CFG with VPRegionBlocks, turing \p Plan's
56+ // / flat CFG into a hierarchical CFG. It also creates a VPValue expression for
57+ // / the original trip count. It will also introduce a dedicated VPBasicBlock
58+ // / for the vector pre-header as well a VPBasicBlock as exit block of the
59+ // / region (middle.block). If a check is needed to guard executing the scalar
6260 // / epilogue loop, it will be added to the middle block, together with
6361 // / VPBasicBlocks for the scalar preheader and exit blocks. \p InductionTy is
6462 // / the type of the canonical induction and used for related values, like the
6563 // / trip count expression.
66- static void introduceTopLevelVectorLoopRegion (
67- VPlan &Plan, Type *InductionTy, PredicatedScalarEvolution &PSE,
68- bool RequiresScalarEpilogueCheck, bool TailFolded, Loop *TheLoop);
64+ static void introduceRegions (VPlan &Plan, Type *InductionTy,
65+ PredicatedScalarEvolution &PSE,
66+ bool RequiresScalarEpilogueCheck,
67+ bool TailFolded, Loop *TheLoop);
6968
7069 // / Replaces the VPInstructions in \p Plan with corresponding
7170 // / widen recipes. Returns false if any VPInstructions could not be converted
0 commit comments