[llvm] [Transforms][Utils] Add LoopSplitUtils for iteration-space loop splitting (PR #205995)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 08:55:42 PDT 2026


================
@@ -0,0 +1,617 @@
+//===- LoopSplitUtils.cpp - Split a loop's iteration space ----------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Splits a counted loop's iteration space into a chain of per-partition
----------------
mtrofin wrote:

drive-by comment: LoopSplitUtilsPass, as a name, says very little. How about LoopPartitioningPass?

See https://llvm.org/docs/CodingStandards.html#the-low-level-issues

"Utils", (or "Helper", while at it) aren't precise, especially for a pass name. (Plenty of articles online about these suffixes as a naming antipattern)

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


More information about the llvm-commits mailing list