Skip to content

Commit 44ccc68

Browse files
committed
Add comment above tryTocreateAbstractPartialReductionRecipe
1 parent 595d8ff commit 44ccc68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,6 +2437,8 @@ static void tryToCreateAbstractReductionRecipe(VPReductionRecipe *Red,
24372437
Red->replaceAllUsesWith(AbstractR);
24382438
}
24392439

2440+
/// This function tries to create an abstract recipe from a partial reduction to
2441+
/// hide its mul and extends from cost estimation.
24402442
static void
24412443
tryToCreateAbstractPartialReductionRecipe(VPPartialReductionRecipe *PRed) {
24422444
if (PRed->getOpcode() != Instruction::Add)

0 commit comments

Comments
 (0)