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

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 16 05:01:24 PDT 2025


================
@@ -426,6 +428,8 @@ bool RecurrenceDescriptor::AddReductionVar(
       ++NumCmpSelectPatternInst;
     if (isAnyOfRecurrenceKind(Kind) && IsASelect)
       ++NumCmpSelectPatternInst;
+    if (isFindLastRecurrenceKind(Kind) && IsASelect)
+      ++NumCmpSelectPatternInst;
----------------
Mel-Chen wrote:

Why we need this?

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


More information about the llvm-commits mailing list