[llvm] [VPlan] Change parent of VPReductionRecipe to VPRecipeWithIRFlags. NFC (PR #130881)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 14 06:45:35 PDT 2025


================
@@ -2347,8 +2353,8 @@ void VPReductionRecipe::print(raw_ostream &O, const Twine &Indent,
   O << " = ";
   getChainOp()->printAsOperand(O, SlotTracker);
   O << " +";
-  if (isa<FPMathOperator>(getUnderlyingInstr()))
-    O << getUnderlyingInstr()->getFastMathFlags();
+  if (isa_and_nonnull<FPMathOperator>(getUnderlyingValue()))
----------------
ElvisWang123 wrote:

Fixed, thanks.

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


More information about the llvm-commits mailing list