[llvm] [VPlan] Introduce child regions as VPlan transform. (PR #129402)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 4 06:07:51 PDT 2025


================
@@ -98,4 +120,9 @@ void VPlanTransforms::introduceTopLevelVectorLoopRegion(
                                ScalarLatchTerm->getDebugLoc(), "cmp.n");
   Builder.createNaryOp(VPInstruction::BranchOnCond, {Cmp},
                        ScalarLatchTerm->getDebugLoc());
+
+  for (VPBlockBase *HeaderVPBB :
----------------
fhahn wrote:

I moved up the loop to create all regions via the loop (also the top-most).

https://github.com/llvm/llvm-project/pull/129402


More information about the llvm-commits mailing list