@@ -8687,7 +8687,8 @@ void VPRecipeBuilder::collectScaledReductions(VFRange &Range) {
86878687 SmallVector<std::pair<PartialReductionChain, unsigned >>
86888688 PartialReductionChains;
86898689 for (const auto &[Phi, RdxDesc] : Legal->getReductionVars ()) {
8690- getScaledReductions (Phi, RdxDesc.getLoopExitInstr (), Range, PartialReductionChains);
8690+ getScaledReductions (Phi, RdxDesc.getLoopExitInstr (), Range,
8691+ PartialReductionChains);
86918692 }
86928693
86938694 // A partial reduction is invalid if any of its extends are used by
@@ -8716,9 +8717,9 @@ void VPRecipeBuilder::collectScaledReductions(VFRange &Range) {
87168717 }
87178718}
87188719
8719- bool
8720- VPRecipeBuilder::getScaledReductions ( Instruction *PHI, Instruction *RdxExitInstr,
8721- VFRange &Range, SmallVector<std::pair<PartialReductionChain, unsigned >> &Chains) {
8720+ bool VPRecipeBuilder::getScaledReductions (
8721+ Instruction *PHI, Instruction *RdxExitInstr, VFRange &Range ,
8722+ SmallVector<std::pair<PartialReductionChain, unsigned >> &Chains) {
87228723
87238724 if (!CM.TheLoop ->contains (RdxExitInstr))
87248725 return false ;
@@ -8739,7 +8740,6 @@ VPRecipeBuilder::getScaledReductions(Instruction *PHI, Instruction *RdxExitInstr
87398740 if (Op == PHI)
87408741 std::swap (Op, PhiOp);
87418742
8742-
87438743 // Try and get a scaled reduction from the first non-phi operand.
87448744 // If one is found, we use the discovered reduction instruction in
87458745 // place of the accumulator for costing.
0 commit comments