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

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 3 03:14:05 PST 2025


================
@@ -702,8 +704,10 @@ RecurrenceDescriptor::isFindIVPattern(RecurKind Kind, Loop *TheLoop,
     return InstDesc(false, I);
 
   // We are looking for selects of the form:
-  //   select(cmp(), phi, loop_induction) or
-  //   select(cmp(), loop_induction, phi)
+  //   select(cmp(), phi, value) or
+  //   select(cmp(), value, phi)
+  // where 'value' might be a loop induction variable
----------------
MacDue wrote:

```suggestion
  // where 'value' is be a loop induction variable
```

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


More information about the llvm-commits mailing list