diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-12-19 02:09:57 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-12-19 02:09:57 +0000 |
commit | 559ca0b1ba84b7943a7c72b0ef4c00a1a09334a7 (patch) | |
tree | 40bbaf73741303264bf9bc194e505583f90772f8 /lib | |
parent | e51b8ccc6d1d219b8c09eaec2af73a5c0b0438ff (diff) | |
download | external_llvm-559ca0b1ba84b7943a7c72b0ef4c00a1a09334a7.zip external_llvm-559ca0b1ba84b7943a7c72b0ef4c00a1a09334a7.tar.gz external_llvm-559ca0b1ba84b7943a7c72b0ef4c00a1a09334a7.tar.bz2 |
Perform this loop only when the -debug flag is specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SimpleRegisterCoalescing.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index a60939c..41022a6 100644 --- a/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/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 |