Skip to content

Commit cf56562

Browse files
committed
[LoopVectorizer] Propagate underlying instruction to the cloned instances of VPPartialReductionRecipes
1 parent e33f456 commit cf56562

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,8 @@ class VPPartialReductionRecipe : public VPSingleDefRecipe {
24592459
~VPPartialReductionRecipe() override = default;
24602460

24612461
VPPartialReductionRecipe *clone() override {
2462-
return new VPPartialReductionRecipe(Opcode, getOperand(0), getOperand(1));
2462+
return new VPPartialReductionRecipe(Opcode, getOperand(0), getOperand(1),
2463+
getUnderlyingInstr());
24632464
}
24642465

24652466
VP_CLASSOF_IMPL(VPDef::VPPartialReductionSC)

0 commit comments

Comments
 (0)