Skip to content

Commit a9a350d

Browse files
committed
Add comment
1 parent 179cf84 commit a9a350d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3427,7 +3427,9 @@ void VPFirstOrderRecurrencePHIRecipe::print(raw_ostream &O, const Twine &Indent,
34273427
void VPReductionPHIRecipe::execute(VPTransformState &State) {
34283428
auto &Builder = State.Builder;
34293429

3430-
auto VF = State.VF.divideCoefficientBy(VFScaleFactor);
3430+
// If this reduction is fed by a scaled reduction then it should output a
3431+
// vector with fewer elements than the VF.
3432+
ElementCount VF = State.VF.divideCoefficientBy(VFScaleFactor);
34313433

34323434
// Reductions do not have to start at zero. They can start with
34333435
// any loop invariant values.

0 commit comments

Comments
 (0)