Skip to content

Commit 2e18209

Browse files
committed
No longer set the underlying instruction in VPPartialReductionRecipe::clone
1 parent 6c4a6b0 commit 2e18209

File tree

1 file changed

+1
-2
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2461,8 +2461,7 @@ class VPPartialReductionRecipe : public VPSingleDefRecipe {
24612461
~VPPartialReductionRecipe() override = default;
24622462

24632463
VPPartialReductionRecipe *clone() override {
2464-
return new VPPartialReductionRecipe(Opcode, getOperand(0), getOperand(1),
2465-
getUnderlyingInstr());
2464+
return new VPPartialReductionRecipe(Opcode, getOperand(0), getOperand(1));
24662465
}
24672466

24682467
VP_CLASSOF_IMPL(VPDef::VPPartialReductionSC)

0 commit comments

Comments
 (0)