Skip to content

Commit c4451c9

Browse files
committed
Use SmallVectorImpl instead of SmallVector
1 parent 57c0548 commit c4451c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8719,7 +8719,7 @@ void VPRecipeBuilder::collectScaledReductions(VFRange &Range) {
87198719

87208720
bool VPRecipeBuilder::getScaledReductions(
87218721
Instruction *PHI, Instruction *RdxExitInstr, VFRange &Range,
8722-
SmallVector<std::pair<PartialReductionChain, unsigned>> &Chains) {
8722+
SmallVectorImpl<std::pair<PartialReductionChain, unsigned>> &Chains) {
87238723

87248724
if (!CM.TheLoop->contains(RdxExitInstr))
87258725
return false;

llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class VPRecipeBuilder {
148148
/// but the top-level call does not.
149149
bool getScaledReductions(
150150
Instruction *PHI, Instruction *RdxExitInstr, VFRange &Range,
151-
SmallVector<std::pair<PartialReductionChain, unsigned>> &Chains);
151+
SmallVectorImpl<std::pair<PartialReductionChain, unsigned>> &Chains);
152152

153153
public:
154154
VPRecipeBuilder(VPlan &Plan, Loop *OrigLoop, const TargetLibraryInfo *TLI,

0 commit comments

Comments
 (0)