summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-12-19 02:09:57 +0000
committerBill Wendling <isanbard@gmail.com>2008-12-19 02:09:57 +0000
commit19a54ffc7f955c5b322abce63fdf06c7dc2bd42e (patch)
treefdec8581bc690db7699998428cd2ad275405a008 /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
parent8c82a8a984b68c1c44116b0d3edf1dc9daa5c762 (diff)
downloadbcm5719-llvm-19a54ffc7f955c5b322abce63fdf06c7dc2bd42e.tar.gz
bcm5719-llvm-19a54ffc7f955c5b322abce63fdf06c7dc2bd42e.zip
Perform this loop only when the -debug flag is specified.
llvm-svn: 61238
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index a60939c3010..41022a6e269 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -2283,11 +2283,13 @@ bool SimpleRegisterCoalescing::runOnMachineFunction(MachineFunction &fn) {
// Join (coalesce) intervals if requested.
if (EnableJoining) {
joinIntervals();
- DOUT << "********** INTERVALS POST JOINING **********\n";
- for (LiveIntervals::iterator I = li_->begin(), E = li_->end(); I != E; ++I){
- I->second->print(DOUT, tri_);
- DOUT << "\n";
- }
+ DEBUG({
+ DOUT << "********** INTERVALS POST JOINING **********\n";
+ for (LiveIntervals::iterator I = li_->begin(), E = li_->end(); I != E; ++I){
+ I->second->print(DOUT, tri_);
+ DOUT << "\n";
+ }
+ });
}
// Perform a final pass over the instructions and compute spill weights
OpenPOWER on IntegriCloud