@@ -2392,10 +2392,7 @@ void VPReductionRecipe::print(raw_ostream &O, const Twine &Indent,
2392
2392
O << " +" ;
2393
2393
if (isa<FPMathOperator>(getUnderlyingInstr ()))
2394
2394
O << getUnderlyingInstr ()->getFastMathFlags ();
2395
- O << " reduce."
2396
- << Instruction::getOpcodeName (
2397
- RecurrenceDescriptor::getOpcode (getRecurrenceKind ()))
2398
- << " (" ;
2395
+ O << " reduce." << Instruction::getOpcodeName (getOpcode ()) << " (" ;
2399
2396
getVecOp ()->printAsOperand (O, SlotTracker);
2400
2397
if (isConditional ()) {
2401
2398
O << " , " ;
@@ -2406,17 +2403,14 @@ void VPReductionRecipe::print(raw_ostream &O, const Twine &Indent,
2406
2403
2407
2404
void VPReductionEVLRecipe::print (raw_ostream &O, const Twine &Indent,
2408
2405
VPSlotTracker &SlotTracker) const {
2409
- RecurKind Kind = getRecurrenceKind ();
2410
2406
O << Indent << " REDUCE " ;
2411
2407
printAsOperand (O, SlotTracker);
2412
2408
O << " = " ;
2413
2409
getChainOp ()->printAsOperand (O, SlotTracker);
2414
2410
O << " +" ;
2415
2411
if (isa<FPMathOperator>(getUnderlyingInstr ()))
2416
2412
O << getUnderlyingInstr ()->getFastMathFlags ();
2417
- O << " vp.reduce."
2418
- << Instruction::getOpcodeName (RecurrenceDescriptor::getOpcode (Kind))
2419
- << " (" ;
2413
+ O << " vp.reduce." << Instruction::getOpcodeName (getOpcode ()) << " (" ;
2420
2414
getVecOp ()->printAsOperand (O, SlotTracker);
2421
2415
O << " , " ;
2422
2416
getEVL ()->printAsOperand (O, SlotTracker);
0 commit comments