Skip to content

Commit 6d71404

Browse files
committed
Change debug message and add const
1 parent 71ac823 commit 6d71404

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
@@ -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

0 commit comments

Comments
 (0)