Skip to content

Commit a383d2b

Browse files
committed
Change debug message and add const
1 parent 4f66f4f commit a383d2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ class LoopVectorizationCostModel {
10231023

10241024
/// Check if any of the tracked live intervals exceeds the number of
10251025
/// available registers for the target.
1026-
bool exceedsMaxNumRegs(const TargetTransformInfo &TTI) {
1026+
bool exceedsMaxNumRegs(const TargetTransformInfo &TTI) const {
10271027
return any_of(MaxLocalUsers, [&TTI](auto &LU) {
10281028
return LU.second > TTI.getNumberOfRegisters(LU.first);
10291029
});
@@ -7602,8 +7602,8 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() {
76027602
VectorizationFactor CurrentFactor(VF, Cost, ScalarCost);
76037603

76047604
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");
76077607
continue;
76087608
}
76097609

0 commit comments

Comments
 (0)