Perform this loop only when the -debug flag is specified.

llvm-svn: 61238
This commit is contained in:
Bill Wendling 2008-12-19 02:09:57 +00:00
parent 8c82a8a984
commit 19a54ffc7f
1 changed files with 7 additions and 5 deletions

View File

@ -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