[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:32:50 PST 2026


================
@@ -556,6 +592,10 @@ bool RecurrenceDescriptor::AddReductionVar(
     Worklist.append(NonPHIs.begin(), NonPHIs.end());
   }
 
+  if (FoundFindLastLikePhi &&
+      (NumNonPHIUsers != 0 || Kind != RecurKind::FindLast))
+    return false;
+
----------------
fhahn wrote:

Can we ever hit his exit?

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


More information about the llvm-commits mailing list