Skip to content

Commit 131d73e

Browse files
authored
[RegAlloc] Remove redundant prints of LiveInterval weight. (llvm#116451)
LiveInterval::print has included the weight since early 2018. We don't need to print again after we print the interval.
1 parent 1be9827 commit 131d73e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/CodeGen/RegAllocBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void RegAllocBase::allocatePhysRegs() {
105105
// result from splitting.
106106
LLVM_DEBUG(dbgs() << "\nselectOrSplit "
107107
<< TRI->getRegClassName(MRI->getRegClass(VirtReg->reg()))
108-
<< ':' << *VirtReg << " w=" << VirtReg->weight() << '\n');
108+
<< ':' << *VirtReg << '\n');
109109

110110
using VirtRegVec = SmallVector<Register, 4>;
111111

llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ bool DefaultEvictionAdvisor::shouldEvict(const LiveInterval &A, bool IsHint,
157157
return true;
158158

159159
if (A.weight() > B.weight()) {
160-
LLVM_DEBUG(dbgs() << "should evict: " << B << " w= " << B.weight() << '\n');
160+
LLVM_DEBUG(dbgs() << "should evict: " << B << '\n');
161161
return true;
162162
}
163163
return false;

0 commit comments

Comments
 (0)