Perform this loop only when the -debug flag is specified.
authorBill Wendling <isanbard@gmail.com>
Fri, 19 Dec 2008 02:09:57 +0000 (02:09 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 19 Dec 2008 02:09:57 +0000 (02:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61238 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SimpleRegisterCoalescing.cpp

index a60939c301057c2d0f0498c316c866cb949eec6c..41022a6e269a68511e15911182c0b5366761eceb 100644 (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