[llvm-commits] CVS: llvm/lib/Transforms/Scalar/SCCP.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 9 12:30:50 PDT 2004



Changes in directory llvm/lib/Transforms/Scalar:

SCCP.cpp updated: 1.102 -> 1.103
---
Log message:

Use DEBUG instead of DebugFlag directly, as DebugFlag does not respect
-debug-only!


---
Diffs of the changes:  (+3 -5)

Index: llvm/lib/Transforms/Scalar/SCCP.cpp
diff -u llvm/lib/Transforms/Scalar/SCCP.cpp:1.102 llvm/lib/Transforms/Scalar/SCCP.cpp:1.103
--- llvm/lib/Transforms/Scalar/SCCP.cpp:1.102	Sun Sep 19 23:43:15 2004
+++ llvm/lib/Transforms/Scalar/SCCP.cpp	Sat Oct  9 14:30:36 2004
@@ -344,11 +344,9 @@
     }
   }
 
-  if (DebugFlag) {
-    for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
-      if (!BBExecutable.count(I))
-        std::cerr << "BasicBlock Dead:" << *I;
-  }
+  DEBUG(for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
+          if (!BBExecutable.count(I))
+             std::cerr << "BasicBlock Dead:" << *I);
 
   // Iterate over all of the instructions in a function, replacing them with
   // constants if we have found them to be of constant values.






More information about the llvm-commits mailing list