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 d267411 commit 06ef087Copy full SHA for 06ef087
llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2696,8 +2696,10 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
2696
MulAcc->getCondOp(), MulAcc->isOrdered(),
2697
WrapFlagsTy(MulAcc->hasNoUnsignedWrap(), MulAcc->hasNoSignedWrap()),
2698
MulAcc->getDebugLoc()),
2699
- ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()),
2700
- ResultTy(MulAcc->getResultType()) {}
+ ExtOp(MulAcc->getExtOpcode()), IsNonNeg(MulAcc->isNonNeg()) {
+ if (MulAcc->isExtended())
2701
+ ResultTy = MulAcc->getResultType();
2702
+ }
2703
2704
public:
2705
VPMulAccumulateReductionRecipe(VPReductionRecipe *R, VPWidenRecipe *Mul,
0 commit comments