Skip to content

Commit 06ef087

Browse files
committed
!fixup, fix assertion of getResultType().
1 parent d267411 commit 06ef087

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
@@ -2696,8 +2696,10 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
26962696
MulAcc->getCondOp(), MulAcc->isOrdered(),
26972697
WrapFlagsTy(MulAcc->hasNoUnsignedWrap(), MulAcc->hasNoSignedWrap()),
26982698
MulAcc->getDebugLoc()),
2699-
ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()),
2700-
ResultTy(MulAcc->getResultType()) {}
2699+
ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()) {
2700+
if (MulAcc->isExtended())
2701+
ResultTy = MulAcc->getResultType();
2702+
}
27012703

27022704
public:
27032705
VPMulAccumulateReductionRecipe(VPReductionRecipe *R, VPWidenRecipe *Mul,

0 commit comments

Comments
 (0)