[llvm] [VPlan] Handle early exit before forming regions. (NFC) (PR #138393)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 8 05:31:35 PDT 2025


================
@@ -9383,7 +9383,8 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
   VPlanTransforms::prepareForVectorization(
----------------
ayalz wrote:

(Independent) Should `prepareForVectorization` be renamed to a more informative name, perhaps `canonicalizeTopLoop`, as it takes care of canonicalizing header and latch blocks, introducing and connecting preheader, middle-block,  scalar preheader, canonical IV recipes and trip-count value. 

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


More information about the llvm-commits mailing list