Skip to content

Commit 39f14c4

Browse files
committed
!fixup, fix assertion of getResultType().
1 parent 728fa41 commit 39f14c4

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,8 +2640,10 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
26402640
MulAcc->getCondOp(), MulAcc->isOrdered(),
26412641
WrapFlagsTy(MulAcc->hasNoUnsignedWrap(), MulAcc->hasNoSignedWrap()),
26422642
MulAcc->getDebugLoc()),
2643-
ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()),
2644-
ResultTy(MulAcc->getResultType()) {}
2643+
ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()) {
2644+
if (MulAcc->isExtended())
2645+
ResultTy = MulAcc->getResultType();
2646+
}
26452647

26462648
public:
26472649
VPMulAccumulateReductionRecipe(VPReductionRecipe *R, VPWidenRecipe *Mul,

0 commit comments

Comments
 (0)