@@ -8628,8 +8628,9 @@ void VPRecipeBuilder::fixHeaderPhis() {
86288628 }
86298629}
86308630
8631- VPReplicateRecipe *VPRecipeBuilder::handleReplication (Instruction *I,
8632- VFRange &Range) {
8631+ VPReplicateRecipe *
8632+ VPRecipeBuilder::handleReplication (Instruction *I, ArrayRef<VPValue *> Operands,
8633+ VFRange &Range) {
86338634 bool IsUniform = LoopVectorizationPlanner::getDecisionAndClampRange (
86348635 [&](ElementCount VF) { return CM.isUniformAfterVectorization (I, VF); },
86358636 Range);
@@ -8685,8 +8686,8 @@ VPReplicateRecipe *VPRecipeBuilder::handleReplication(Instruction *I,
86858686 assert ((Range.Start .isScalar () || !IsUniform || !IsPredicated ||
86868687 (Range.Start .isScalable () && isa<IntrinsicInst>(I))) &&
86878688 " Should not predicate a uniform recipe" );
8688- auto *Recipe = new VPReplicateRecipe (I, mapToVPValues (I-> operands ()),
8689- IsUniform, BlockInMask);
8689+ auto *Recipe = new VPReplicateRecipe (
8690+ I, make_range (Operands. begin (), Operands. end ()), IsUniform, BlockInMask);
86908691 return Recipe;
86918692}
86928693
@@ -9358,7 +9359,7 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
93589359 VPRecipeBase *Recipe =
93599360 RecipeBuilder.tryToCreateWidenRecipe (Instr, Operands, Range, VPBB);
93609361 if (!Recipe)
9361- Recipe = RecipeBuilder.handleReplication (Instr, Range);
9362+ Recipe = RecipeBuilder.handleReplication (Instr, Operands, Range);
93629363
93639364 RecipeBuilder.setRecipe (Instr, Recipe);
93649365 if (isa<VPHeaderPHIRecipe>(Recipe)) {
0 commit comments