[llvm-commits] [llvm] r159021 - /llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Jun 22 12:51:42 PDT 2012
Author: stoklund
Date: Fri Jun 22 14:51:41 2012
New Revision: 159021
URL: http://llvm.org/viewvc/llvm-project?rev=159021&view=rev
Log:
Fix a crash in --debug code.
Don't try to print out the live range of a physreg.
Modified:
llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
Modified: llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp?rev=159021&r1=159020&r2=159021&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp Fri Jun 22 14:51:41 2012
@@ -1053,8 +1053,12 @@
// 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;
More information about the llvm-commits
mailing list