We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d883d5f commit 534b9cdCopy full SHA for 534b9cd
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4278,8 +4278,9 @@ VectorizationFactor LoopVectorizationPlanner::selectVectorizationFactor() {
4278
if (VF.isScalar())
4279
continue;
4280
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.
+ /// If the register pressure needs to be considered for VF,
+ /// don't consider the VF as valid if it exceeds the number
4283
+ /// of registers for the target.
4284
if (CM.shouldCalculateRegPressureForVF(VF) &&
4285
RUs[I].exceedsMaxNumRegs(TTI, ForceTargetNumVectorRegs))
4286
0 commit comments