[llvm] [LV] Support conditional scalar assignments of masked operations (PR #178862)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 5 06:18:18 PST 2026
================
@@ -310,6 +327,13 @@ bool RecurrenceDescriptor::AddReductionVar(
unsigned NumCmpSelectPatternInst = 0;
InstDesc ReduxDesc(false, nullptr);
+ // To recognize find-lasts of conditional operations (such as loads or
+ // divides), that need masking, we track non-phi users and if we've found a
+ // "find-last-like" phi (see isFindLastLikePhi). We currently only support
+ // loops with a single "find-last-phi" and do not allow any other operations.
----------------
fhahn wrote:
does tha mean a single find last reducion per loop? i couldnt find a test with muliple find-las reductions, but I dont think we restrict the transform to single find-last?
https://github.com/llvm/llvm-project/pull/178862
More information about the llvm-commits
mailing list