Skip to content

Commit 9caf1f7

Browse files
committed
Format
1 parent 869e986 commit 9caf1f7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ class VPRecipeBuilder {
142142
/// Returns null if no scaled reduction was found, otherwise a pair with a
143143
/// struct containing reduction information and the scaling factor between the
144144
/// number of elements in the input and output.
145-
bool
146-
getScaledReductions(Instruction *PHI, Instruction *RdxExitInstr,
147-
VFRange &Range, SmallVector<std::pair<PartialReductionChain, unsigned>> &Chains);
145+
bool getScaledReductions(
146+
Instruction *PHI, Instruction *RdxExitInstr, VFRange &Range,
147+
SmallVector<std::pair<PartialReductionChain, unsigned>> &Chains);
148148

149149
public:
150150
VPRecipeBuilder(VPlan &Plan, Loop *OrigLoop, const TargetLibraryInfo *TLI,

0 commit comments

Comments
 (0)