[llvm] [LV] Create in-loop sub reductions (PR #147026)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 05:53:35 PDT 2025


================
@@ -627,7 +627,7 @@ for.end:                                          ; preds = %for.body, %entry
   ret float %result.0.lcssa
 }
 
-; Sub we can create a reduction, but not inloop
+; We can create an in-loop reduction for sub-reductions by negating the input
----------------
SamTebbs33 wrote:

Fixed, thank you. And I've added an interleaving run line to the inloop reduction test to make sure nothing breaks the other tests.

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


More information about the llvm-commits mailing list