Skip to content

Commit ad80508

Browse files
committed
Add comment
1 parent e9d2429 commit ad80508

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
@@ -3411,7 +3411,9 @@ void VPFirstOrderRecurrencePHIRecipe::print(raw_ostream &O, const Twine &Indent,
34113411
void VPReductionPHIRecipe::execute(VPTransformState &State) {
34123412
auto &Builder = State.Builder;
34133413

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

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

0 commit comments

Comments
 (0)