Skip to content

Commit 34f19db

Browse files
committed
!fixup, fix assertion of getResultType().
1 parent 92163e9 commit 34f19db

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -2642,8 +2642,10 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
26422642
MulAcc->getCondOp(), MulAcc->isOrdered(),
26432643
WrapFlagsTy(MulAcc->hasNoUnsignedWrap(), MulAcc->hasNoSignedWrap()),
26442644
MulAcc->getDebugLoc()),
2645-
ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()),
2646-
ResultTy(MulAcc->getResultType()) {}
2645+
ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()) {
2646+
if (MulAcc->isExtended())
2647+
ResultTy = MulAcc->getResultType();
2648+
}
26472649

26482650
public:
26492651
VPMulAccumulateReductionRecipe(VPReductionRecipe *R, VPWidenRecipe *Mul,

0 commit comments

Comments
 (0)