[llvm] [LV] Vectorize selecting last IV of min/max element. (PR #141431)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 19 07:11:05 PST 2025


================
@@ -2347,6 +2352,10 @@ class VPReductionPHIRecipe : public VPHeaderPHIRecipe,
   /// The phi is part of an ordered reduction. Requires IsInLoop to be true.
   bool IsOrdered;
 
+  /// The phi is part of a multi-use reduction (e.g., used in FindLastIV
+  /// patterns).
+  bool IsPhiMultiUse;
----------------
fhahn wrote:

Yes, although it would need implementing matching Cmp/Select.

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


More information about the llvm-commits mailing list