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 @@ -1023,7 +1023,7 @@ class LoopVectorizationCostModel {
1023
1023
1024
1024
// / Check if any of the tracked live intervals exceeds the number of
1025
1025
// / available registers for the target.
1026
- bool exceedsMaxNumRegs (const TargetTransformInfo &TTI) {
1026
+ bool exceedsMaxNumRegs (const TargetTransformInfo &TTI) const {
1027
1027
return any_of (MaxLocalUsers, [&TTI](auto &LU) {
1028
1028
return LU.second > TTI.getNumberOfRegisters (LU.first );
1029
1029
});
@@ -7602,8 +7602,8 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() {
7602
7602
VectorizationFactor CurrentFactor (VF, Cost, ScalarCost);
7603
7603
7604
7604
if (RU.exceedsMaxNumRegs (TTI)) {
7605
- LLVM_DEBUG (dbgs () << " LV(REG): Ignoring VF " << VF
7606
- << " as it uses too many registers\n " );
7605
+ LLVM_DEBUG (dbgs () << " LV(REG): Not considering vector loop of width "
7606
+ << VF << " because it uses too many registers\n " );
7607
7607
continue ;
7608
7608
}
7609
7609
You can’t perform that action at this time.
0 commit comments