mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-27 13:40:43 +00:00
DEBUG shouldEvict decisions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
833a9e9395
commit
09f1b252af
@ -101,8 +101,8 @@ void RegAllocBase::allocatePhysRegs() {
|
||||
// register if possible and populate a list of new live intervals that
|
||||
// result from splitting.
|
||||
DEBUG(dbgs() << "\nselectOrSplit "
|
||||
<< MRI->getRegClass(VirtReg->reg)->getName()
|
||||
<< ':' << *VirtReg << '\n');
|
||||
<< MRI->getRegClass(VirtReg->reg)->getName()
|
||||
<< ':' << *VirtReg << " w=" << VirtReg->weight << '\n');
|
||||
typedef SmallVector<unsigned, 4> VirtRegVec;
|
||||
VirtRegVec SplitVRegs;
|
||||
unsigned AvailablePhysReg = selectOrSplit(*VirtReg, SplitVRegs);
|
||||
|
@ -548,7 +548,11 @@ bool RAGreedy::shouldEvict(LiveInterval &A, bool IsHint,
|
||||
if (CanSplit && IsHint && !BreaksHint)
|
||||
return true;
|
||||
|
||||
return A.weight > B.weight;
|
||||
if (A.weight > B.weight) {
|
||||
DEBUG(dbgs() << "should evict: " << B << " w= " << B.weight << '\n');
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// canEvictInterference - Return true if all interferences between VirtReg and
|
||||
|
Loading…
Reference in New Issue
Block a user