We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92163e9 commit 34f19dbCopy full SHA for 34f19db
llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2642,8 +2642,10 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2642
MulAcc->getCondOp(), MulAcc->isOrdered(),
2643
WrapFlagsTy(MulAcc->hasNoUnsignedWrap(), MulAcc->hasNoSignedWrap()),
2644
MulAcc->getDebugLoc()),
2645
- ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()),
2646
- ResultTy(MulAcc->getResultType()) {}
+ ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()) {
+ if (MulAcc->isExtended())
2647
+ ResultTy = MulAcc->getResultType();
2648
+ }
2649
2650
public:
2651
VPMulAccumulateReductionRecipe(VPReductionRecipe *R, VPWidenRecipe *Mul,
0 commit comments