forked from OSchip/llvm-project
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:
parent
48a1647c93
commit
48828bb402
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue