Skip to content

Commit d4b85c7

Browse files
committed
!fixup address remaining comments, thanks
1 parent cfb9a06 commit d4b85c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9580,7 +9580,7 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range,
95809580
// Only create recipe for the final invariant store of the reduction.
95819581
if (Legal->isInvariantStoreOfReduction(SI)) {
95829582
auto *Recipe = new VPReplicateRecipe(
9583-
SI, R.operands(), true /* IsUniform */, /*Mask*/ nullptr,
9583+
SI, R.operands(), true /* IsUniform */, nullptr /*Mask*/,
95849584
RecipeBuilder.getMetadataToPropagate(SI));
95859585
Recipe->insertBefore(*MiddleVPBB, MBIP);
95869586
}
@@ -9763,7 +9763,7 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlan(VFRange &Range) {
97639763
// Collect mapping of IR header phis to header phi recipes, to be used in
97649764
// addScalarResumePhis.
97659765
VPRecipeBuilder RecipeBuilder(*Plan, OrigLoop, TLI, &TTI, Legal, CM, PSE,
9766-
Builder, nullptr);
9766+
Builder);
97679767
for (auto &R : Plan->getVectorLoopRegion()->getEntryBasicBlock()->phis()) {
97689768
if (isa<VPCanonicalIVPHIRecipe>(&R))
97699769
continue;

llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class VPRecipeBuilder {
160160
LoopVectorizationLegality *Legal,
161161
LoopVectorizationCostModel &CM,
162162
PredicatedScalarEvolution &PSE, VPBuilder &Builder,
163-
LoopVersioning *LVer)
163+
LoopVersioning *LVer = nullptr)
164164
: Plan(Plan), OrigLoop(OrigLoop), TLI(TLI), TTI(TTI), Legal(Legal),
165165
CM(CM), PSE(PSE), Builder(Builder), LVer(LVer) {}
166166

0 commit comments

Comments
 (0)