mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Print out the MBB live-in registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e4709777e3
commit
3b92527885
@ -439,6 +439,7 @@ void RegAllocBase::addMBBLiveIns(MachineFunction *MF) {
|
||||
LiveIntervalUnion &LiveUnion = PhysReg2LiveUnion[PhysReg];
|
||||
if (LiveUnion.empty())
|
||||
continue;
|
||||
DEBUG(dbgs() << PrintReg(PhysReg, TRI) << " live-in:");
|
||||
MachineFunction::iterator MBB = llvm::next(MF->begin());
|
||||
MachineFunction::iterator MFE = MF->end();
|
||||
SlotIndex Start, Stop;
|
||||
@ -449,6 +450,8 @@ void RegAllocBase::addMBBLiveIns(MachineFunction *MF) {
|
||||
if (SI.start() <= Start) {
|
||||
if (!MBB->isLiveIn(PhysReg))
|
||||
MBB->addLiveIn(PhysReg);
|
||||
DEBUG(dbgs() << "\tBB#" << MBB->getNumber() << ':'
|
||||
<< PrintReg(SI.value()->reg, TRI));
|
||||
} else if (SI.start() > Stop)
|
||||
MBB = Indexes->getMBBFromIndex(SI.start().getPrevIndex());
|
||||
if (++MBB == MFE)
|
||||
@ -456,6 +459,7 @@ void RegAllocBase::addMBBLiveIns(MachineFunction *MF) {
|
||||
tie(Start, Stop) = Indexes->getMBBRange(MBB);
|
||||
SI.advanceTo(Start);
|
||||
}
|
||||
DEBUG(dbgs() << '\n');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user