Skip to content

Commit 57df60b

Browse files
committed
Also check other op info in isExtended()
1 parent 0ffb8c1 commit 57df60b

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
@@ -2798,7 +2798,8 @@ class VPMulAccumulateReductionRecipe : public VPReductionRecipe {
27982798

27992799
/// Return true if this recipe contains extended operands.
28002800
bool isExtended() const {
2801-
return getVecOp0Info().ExtOp != Instruction::CastOps::CastOpsEnd;
2801+
return getVecOp0Info().ExtOp != Instruction::CastOps::CastOpsEnd ||
2802+
getVecOp1Info().ExtOp != Instruction::CastOps::CastOpsEnd;
28022803
}
28032804

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

0 commit comments

Comments
 (0)