diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-06-22 19:51:41 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-06-22 19:51:41 +0000 |
commit | 48828bb402974dd9560b1b0c3c9eb01cc0ce8551 (patch) | |
tree | 537eec9aa8ebe442352b4d0a68ff8a02f1a06969 /llvm/lib/CodeGen/RegisterCoalescer.cpp | |
parent | 48a1647c93716977049185440cbbdb1a4a903757 (diff) | |
download | bcm5719-llvm-48828bb402974dd9560b1b0c3c9eb01cc0ce8551.tar.gz bcm5719-llvm-48828bb402974dd9560b1b0c3c9eb01cc0ce8551.zip |
Fix a crash in --debug code.
Don't try to print out the live range of a physreg.
llvm-svn: 159021
Diffstat (limited to 'llvm/lib/CodeGen/RegisterCoalescer.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegisterCoalescer.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 7ef525d9f3c..19b6ffcb51b 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp @@ -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; |