[llvm] [VPlan] Print RecurKind when dumping VPReductionPHI (PR #190114)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 09:14:27 PDT 2026


================
@@ -4670,7 +4712,9 @@ void VPReductionPHIRecipe::printRecipe(raw_ostream &O, const Twine &Indent,
   O << Indent << "WIDEN-REDUCTION-PHI ";
 
   printAsOperand(O, SlotTracker);
-  O << " = phi";
+  O << " = phi (";
+  printRecurKind(O, Kind);
----------------
artagnon wrote:

Might be good to rename VPReductionPHIRecipe::getRecurrenceKind -> getRecurKind, and use it here for uniformity?

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


More information about the llvm-commits mailing list