File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -999,7 +999,7 @@ class LoopVectorizationCostModel {
999999
10001000 // / Check if any of the tracked live intervals exceeds the number of
10011001 // / available registers for the target.
1002- bool exceedsMaxNumRegs (const TargetTransformInfo &TTI) {
1002+ bool exceedsMaxNumRegs (const TargetTransformInfo &TTI) const {
10031003 return any_of (MaxLocalUsers, [&TTI](auto &LU) {
10041004 return LU.second > TTI.getNumberOfRegisters (LU.first );
10051005 });
@@ -7443,8 +7443,8 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() {
74437443 VectorizationFactor CurrentFactor (VF, Cost, ScalarCost);
74447444
74457445 if (RU.exceedsMaxNumRegs (TTI)) {
7446- LLVM_DEBUG (dbgs () << " LV(REG): Ignoring VF " << VF
7447- << " as it uses too many registers\n " );
7446+ LLVM_DEBUG (dbgs () << " LV(REG): Not considering vector loop of width "
7447+ << VF << " because it uses too many registers\n " );
74487448 continue ;
74497449 }
74507450
You can’t perform that action at this time.
0 commit comments