[llvm] [LV] Vectorize conditional scalar assignments (PR #158088)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 5 02:12:15 PST 2025
================
@@ -10148,6 +10167,21 @@ bool LoopVectorizePass::processLoop(Loop *L) {
// Override IC if user provided an interleave count.
IC = UserIC > 0 ? UserIC : IC;
+ // FIXME: Enable interleaving for last_active reductions.
+ if (any_of(LVL.getReductionVars().values(), [](auto &RdxDesc) {
+ return RecurrenceDescriptor::isFindLastRecurrenceKind(
+ RdxDesc.getRecurrenceKind());
+ })) {
+ LLVM_DEBUG(dbgs() << "LV: Not interleaving without vectorization due "
+ << "to conditional scalar assignments.\n");
----------------
fhahn wrote:
```suggestion
<< "to FindLast reduction.\n");
```
for consistency with the reduction naming
https://github.com/llvm/llvm-project/pull/158088
More information about the llvm-commits
mailing list