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

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


================
@@ -4612,6 +4616,12 @@ LoopVectorizationPlanner::selectInterleaveCount(VPlan &Plan, ElementCount VF,
       any_of(Plan.getVectorLoopRegion()->getEntryBasicBlock()->phis(),
              IsaPred<VPReductionPHIRecipe>);
 
+  // FIXME: implement interleaving for FindLast transform correctly.
+  for (auto &[_, RdxDesc] : Legal->getReductionVars())
+    if (RecurrenceDescriptor::isFindLastRecurrenceKind(
+            RdxDesc.getRecurrenceKind()))
----------------
Mel-Chen wrote:

Could we use any_of to implement this?

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


More information about the llvm-commits mailing list