[llvm] [LV] Vectorize conditional scalar assignments (PR #158088)
Graham Hunter via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 09:13:34 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()))
----------------
huntergr-arm wrote:
done, though I think it's not quite as neat. There's another PR that will help clean it up though (#169675).
https://github.com/llvm/llvm-project/pull/158088
More information about the llvm-commits
mailing list