Skip to content

Commit d604652

Browse files
committed
Also check other op info in isExtended()
1 parent 6e82fc5 commit d604652

File tree

1 file changed

+2
-1
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2589,7 +2589,8 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
25892589

25902590
/// Return if this MulAcc recipe contains extend instructions.
25912591
bool isExtended() const {
2592-
return getVecOp0Info().ExtOp != Instruction::CastOps::CastOpsEnd;
2592+
return getVecOp0Info().ExtOp != Instruction::CastOps::CastOpsEnd ||
2593+
getVecOp1Info().ExtOp != Instruction::CastOps::CastOpsEnd;
25932594
}
25942595

25952596
/// Return if the operands of mul instruction come from same extend.

0 commit comments

Comments
 (0)