Skip to content

Commit 5b9b6e8

Browse files
committed
Address final review
1 parent 60bac34 commit 5b9b6e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3723,7 +3723,8 @@ tryToMatchAndCreateMulAccumulateReduction(VPReductionRecipe *Red,
37233723
// -> reduce.add(mul(wider_ext(A), wider_ext(B)))
37243724
// The inner extends must either have the same opcode as the outer extend or
37253725
// be the same, in which case the multiply can never result in a negative
3726-
// value and the outer extend opcode doesn't matter
3726+
// value and the outer extend can be folded away by doing wider
3727+
// extends for the operands of the mul.
37273728
if (Ext0 && Ext1 &&
37283729
(Ext->getOpcode() == Ext0->getOpcode() || Ext0 == Ext1) &&
37293730
Ext0->getOpcode() == Ext1->getOpcode() &&

0 commit comments

Comments
 (0)