Skip to content

Commit a80c3e0

Browse files
committed
Fixups
1 parent 07cb536 commit a80c3e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4612,7 +4612,7 @@ static bool willGenerateVectors(VPlan &Plan, ElementCount VF,
46124612
llvm_unreachable("unhandled recipe");
46134613
}
46144614

4615-
auto WillWiden = [&TTI, VF](Type *VectorTy) {
4615+
auto WillGenerateTargetVectors = [&TTI, VF](Type *VectorTy) {
46164616
unsigned NumLegalParts = TTI.getNumberOfParts(VectorTy);
46174617
if (!NumLegalParts)
46184618
return false;
@@ -4624,7 +4624,7 @@ static bool willGenerateVectors(VPlan &Plan, ElementCount VF,
46244624
// explicitly ask TTI about the register class uses for each part.
46254625
return NumLegalParts <= VF.getKnownMinValue();
46264626
}
4627-
// Two or more parts that share a register - are vectorized.
4627+
// Two or more elements that share a register - are vectorized.
46284628
return NumLegalParts < VF.getKnownMinValue();
46294629
};
46304630

@@ -4644,7 +4644,7 @@ static bool willGenerateVectors(VPlan &Plan, ElementCount VF,
46444644
if (!Visited.insert({ScalarTy}).second)
46454645
continue;
46464646
Type *WideTy = toVectorizedTy(ScalarTy, VF);
4647-
if (any_of(getContainedTypes(WideTy), WillWiden))
4647+
if (any_of(getContainedTypes(WideTy), WillGenerateTargetVectors))
46484648
return true;
46494649
}
46504650
}

0 commit comments

Comments
 (0)