[llvm] [LV] Add support for cmp reductions with decreasing IVs. (PR #140451)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 07:51:47 PDT 2025


================
@@ -23325,6 +23329,8 @@ class HorizontalReduction {
     case RecurKind::FMulAdd:
     case RecurKind::AnyOf:
     case RecurKind::FindLastIV:
+    case RecurKind::FindFirstIVUMin:
+    case RecurKind::FindFirstIVSMin:
----------------
artagnon wrote:

Why is this asymmetric? Wouldn't it be nicer to first separate out FindLastIV into FindLastIVSMax/UMax?

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


More information about the llvm-commits mailing list