[llvm] [LV] Change opcode of FindLast/FindFirst recurrence to Instruction::Select (PR #162252)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 7 05:01:43 PDT 2025


================
@@ -6515,9 +6515,14 @@ void LoopVectorizationCostModel::collectInLoopReductions() {
     if (RdxDesc.getRecurrenceType() != Phi->getType())
       continue;
 
+    // In-loop AnyOf and FindIV reductions are not yet supported.
+    RecurKind Kind = RdxDesc.getRecurrenceKind();
+    if (RecurrenceDescriptor::isAnyOfRecurrenceKind(Kind) ||
----------------
fhahn wrote:

With this change, can we make Find* `unreachable` in `getOpcode` for now?

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


More information about the llvm-commits mailing list