Fix a crash in --debug code.

Don't try to print out the live range of a physreg.

llvm-svn: 159021
This commit is contained in:
Jakob Stoklund Olesen 2012-06-22 19:51:41 +00:00
parent 48a1647c93
commit 48828bb402
1 changed files with 6 additions and 2 deletions

View File

@ -1053,8 +1053,12 @@ bool RegisterCoalescer::joinCopy(MachineInstr *CopyMI, bool &Again) {
// Update regalloc hint.
TRI->UpdateRegAllocHint(CP.getSrcReg(), CP.getDstReg(), *MF);
DEBUG(dbgs() << "\tJoined. Result = " << PrintReg(CP.getDstReg(), TRI)
<< ' ' << LIS->getInterval(CP.getDstReg()) << '\n');
DEBUG({
dbgs() << "\tJoined. Result = " << PrintReg(CP.getDstReg(), TRI);
if (!CP.isPhys())
dbgs() << LIS->getInterval(CP.getDstReg());
dbgs() << '\n';
});
++numJoins;
return true;