We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 728fa41 commit 39f14c4Copy full SHA for 39f14c4
llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2640,8 +2640,10 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2640
MulAcc->getCondOp(), MulAcc->isOrdered(),
2641
WrapFlagsTy(MulAcc->hasNoUnsignedWrap(), MulAcc->hasNoSignedWrap()),
2642
MulAcc->getDebugLoc()),
2643
- ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()),
2644
- ResultTy(MulAcc->getResultType()) {}
+ ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()) {
+ if (MulAcc->isExtended())
2645
+ ResultTy = MulAcc->getResultType();
2646
+ }
2647
2648
public:
2649
VPMulAccumulateReductionRecipe(VPReductionRecipe *R, VPWidenRecipe *Mul,
0 commit comments