Skip to content

Commit 534b9cd

Browse files
authored
[LoopVectorizer][NFC] Update comment regarding VF register pressure. (#149478)
1 parent d883d5f commit 534b9cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4278,8 +4278,9 @@ VectorizationFactor LoopVectorizationPlanner::selectVectorizationFactor() {
42784278
if (VF.isScalar())
42794279
continue;
42804280

4281-
/// If the VF was proposed due to MaxBandwidth, don't consider the VF if
4282-
/// it exceeds the number of registers for the target.
4281+
/// If the register pressure needs to be considered for VF,
4282+
/// don't consider the VF as valid if it exceeds the number
4283+
/// of registers for the target.
42834284
if (CM.shouldCalculateRegPressureForVF(VF) &&
42844285
RUs[I].exceedsMaxNumRegs(TTI, ForceTargetNumVectorRegs))
42854286
continue;

0 commit comments

Comments
 (0)