Skip to content

Commit 9e97bd0

Browse files
committed
!fixup update VPMulAccumulateReduction::clone().
1 parent 4d1200f commit 9e97bd0

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -2638,10 +2638,8 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
26382638
MulAcc->getCondOp(), MulAcc->isOrdered(),
26392639
WrapFlagsTy(MulAcc->hasNoUnsignedWrap(), MulAcc->hasNoSignedWrap()),
26402640
MulAcc->getDebugLoc()),
2641-
ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()) {
2642-
if (MulAcc->isExtended())
2643-
ResultTy = MulAcc->getResultType();
2644-
}
2641+
ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()),
2642+
ResultTy(MulAcc->getResultType()) {}
26452643

26462644
public:
26472645
VPMulAccumulateReductionRecipe(VPReductionRecipe *R, VPWidenRecipe *Mul,

0 commit comments

Comments
 (0)