Skip to content

Commit 734abc2

Browse files
committed
Remove constructor
1 parent c14193a commit 734abc2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9798,8 +9798,9 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
97989798
CondOp = RecipeBuilder.getBlockInMask(BB);
97999799

98009800
auto *RedRecipe = new VPReductionRecipe(
9801-
RdxDesc, CurrentLinkI, PreviousLink, VecOp, CondOp,
9802-
CM.useOrderedReductions(RdxDesc), CurrentLinkI->getDebugLoc());
9801+
RdxDesc.getRecurrenceKind(), RdxDesc.getFastMathFlags(), CurrentLinkI,
9802+
PreviousLink, VecOp, CondOp, CM.useOrderedReductions(RdxDesc),
9803+
CurrentLinkI->getDebugLoc());
98039804
// Append the recipe to the end of the VPBasicBlock because we need to
98049805
// ensure that it comes after all of it's inputs, including CondOp.
98059806
// Delete CurrentLink as it will be invalid if its operand is replaced

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,12 +2269,6 @@ class VPReductionRecipe : public VPRecipeWithIRFlags {
22692269
ArrayRef<VPValue *>({ChainOp, VecOp}), CondOp,
22702270
IsOrdered, DL) {}
22712271

2272-
VPReductionRecipe(const RecurrenceDescriptor &R, Instruction *I,
2273-
VPValue *ChainOp, VPValue *VecOp, VPValue *CondOp,
2274-
bool IsOrdered, DebugLoc DL = {})
2275-
: VPReductionRecipe(R.getRecurrenceKind(), R.getFastMathFlags(), I,
2276-
ChainOp, VecOp, CondOp, IsOrdered, DL) {}
2277-
22782272
~VPReductionRecipe() override = default;
22792273

22802274
VPReductionRecipe *clone() override {

0 commit comments

Comments
 (0)