Make this pass use a more specific debug message than "Processing:".
authorBrian Gaeke <gaeke@uiuc.edu>
Thu, 1 Jul 2004 19:27:10 +0000 (19:27 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Thu, 1 Jul 2004 19:27:10 +0000 (19:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14541 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/LevelRaise.cpp
lib/Transforms/Scalar/Reassociate.cpp

index aeb836d4b7e4fbf9aba15e69d522227badaa413f..f3a42365f060a7c7b0347c1df25dec53b96d0151 100644 (file)
@@ -562,7 +562,7 @@ bool RPR::DoRaisePass(Function &F) {
   bool Changed = false;
   for (Function::iterator BB = F.begin(), BBE = F.end(); BB != BBE; ++BB)
     for (BasicBlock::iterator BI = BB->begin(); BI != BB->end();) {
-      DEBUG(std::cerr << "Processing: " << *BI);
+      DEBUG(std::cerr << "LevelRaising: " << *BI);
       if (dceInstruction(BI) || doConstantPropagation(BI)) {
         Changed = true; 
         ++NumDCEorCP;
index 99cd7f31658f35f57d22bd6651291a859360231d..705da7f1cba44a7614710e8eaee5cf2f5962df3b 100644 (file)
@@ -211,7 +211,7 @@ bool Reassociate::ReassociateBB(BasicBlock *BB) {
   bool Changed = false;
   for (BasicBlock::iterator BI = BB->begin(); BI != BB->end(); ++BI) {
 
-    DEBUG(std::cerr << "Processing: " << *BI);
+    DEBUG(std::cerr << "Reassociating: " << *BI);
     if (BI->getOpcode() == Instruction::Sub && !BinaryOperator::isNeg(BI)) {
       // Convert a subtract into an add and a neg instruction... so that sub
       // instructions can be commuted with other add instructions...