[llvm] [VPlan] Replace PhiR operand of ComputeAnyOfResult with VPIRFlags. (PR #175657)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 16 08:32:44 PST 2026


================
@@ -1518,6 +1518,10 @@ static void simplifyRecipe(VPSingleDefRecipe *Def, VPTypeAnalysis &TypeInfo) {
     return;
   }
 
+  if (Def->getNumOperands() == 1 &&
+      match(Def, m_ComputeReductionResult(m_VPValue(A))) && isa<VPIRValue>(A))
+    return Def->replaceAllUsesWith(A);
----------------
fhahn wrote:

Yes, this sneaked in as part of such a cleanup patch which I will share separately. Shoudl be stripped from this patch now, thanks

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


More information about the llvm-commits mailing list