[llvm] [LV] Vectorize conditional scalar assignments (PR #158088)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 26 01:16:45 PST 2025


================
@@ -712,6 +726,17 @@ RecurrenceDescriptor::isFindIVPattern(RecurKind Kind, Loop *TheLoop,
                                      m_Value(NonRdxPhi)))))
     return InstDesc(false, I);
 
+  if (isFindLastRecurrenceKind(Kind)) {
----------------
Mel-Chen wrote:

We can remove this check and change the last code of this function like:
```
  if (auto RK = GetRecurKind(NonRdxPhi))
    return InstDesc(I, *RK);
  return InstDesc(I, RecurKind::FindLast);
```

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


More information about the llvm-commits mailing list