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 {
999
999
1000
1000
// / Check if any of the tracked live intervals exceeds the number of
1001
1001
// / available registers for the target.
1002
- bool exceedsMaxNumRegs (const TargetTransformInfo &TTI) {
1002
+ bool exceedsMaxNumRegs (const TargetTransformInfo &TTI) const {
1003
1003
return any_of (MaxLocalUsers, [&TTI](auto &LU) {
1004
1004
return LU.second > TTI.getNumberOfRegisters (LU.first );
1005
1005
});
@@ -7443,8 +7443,8 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() {
7443
7443
VectorizationFactor CurrentFactor (VF, Cost, ScalarCost);
7444
7444
7445
7445
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 " );
7448
7448
continue ;
7449
7449
}
7450
7450
You can’t perform that action at this time.
0 commit comments