[llvm] [LoopUnroll] Rotate loop before unrolling inside of UnrollRuntimeLoopRemainder (PR #148243)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 28 07:23:21 PDT 2025


================
@@ -69,6 +72,18 @@ enum class LoopUnrollResult {
   FullyUnrolled
 };
 
+/// Represents the result of a \c UnrollRuntimeLoopRemainder invocation.
+enum class LoopReminderUnrollResult {
+  /// The loop reminder was not modified.
+  Unmodified,
+
+  /// The loop was rotated, but not unrolled.
+  Rotated,
----------------
annamthomas wrote:

Not really needed anymore in the approach suggested below.

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


More information about the llvm-commits mailing list