[llvm-commits] [llvm] r61238 - /llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp

Bill Wendling isanbard at gmail.com
Thu Dec 18 18:10:03 PST 2008


Author: void
Date: Thu Dec 18 20:09:57 2008
New Revision: 61238

URL: http://llvm.org/viewvc/llvm-project?rev=61238&view=rev
Log:
Perform this loop only when the -debug flag is specified.

Modified:
    llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp

Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=61238&r1=61237&r2=61238&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Thu Dec 18 20:09:57 2008
@@ -2283,11 +2283,13 @@
   // 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





More information about the llvm-commits mailing list