[llvm-commits] [llvm] r92636 - /llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp
David Greene
greened at obbligato.org
Mon Jan 4 17:28:29 PST 2010
Author: greened
Date: Mon Jan 4 19:28:29 2010
New Revision: 92636
URL: http://llvm.org/viewvc/llvm-project?rev=92636&view=rev
Log:
Change errs() to dbgs().
Modified:
llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp
Modified: llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp?rev=92636&r1=92635&r2=92636&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/DeadArgumentElimination.cpp Mon Jan 4 19:28:29 2010
@@ -425,7 +425,7 @@
return;
}
- DEBUG(errs() << "DAE - Inspecting callers for fn: " << F.getName() << "\n");
+ DEBUG(dbgs() << "DAE - Inspecting callers for fn: " << F.getName() << "\n");
// Keep track of the number of live retvals, so we can skip checks once all
// of them turn out to be live.
unsigned NumLiveRetVals = 0;
@@ -488,7 +488,7 @@
for (unsigned i = 0; i != RetCount; ++i)
MarkValue(CreateRet(&F, i), RetValLiveness[i], MaybeLiveRetUses[i]);
- DEBUG(errs() << "DAE - Inspecting args for fn: " << F.getName() << "\n");
+ DEBUG(dbgs() << "DAE - Inspecting args for fn: " << F.getName() << "\n");
// Now, check all of our arguments.
unsigned i = 0;
@@ -530,7 +530,7 @@
/// mark any values that are used as this function's parameters or by its return
/// values (according to Uses) live as well.
void DAE::MarkLive(const Function &F) {
- DEBUG(errs() << "DAE - Intrinsically live fn: " << F.getName() << "\n");
+ DEBUG(dbgs() << "DAE - Intrinsically live fn: " << F.getName() << "\n");
// Mark the function as live.
LiveFunctions.insert(&F);
// Mark all arguments as live.
@@ -551,7 +551,7 @@
if (!LiveValues.insert(RA).second)
return; // We were already marked Live.
- DEBUG(errs() << "DAE - Marking " << RA.getDescription() << " live\n");
+ DEBUG(dbgs() << "DAE - Marking " << RA.getDescription() << " live\n");
PropagateLiveness(RA);
}
@@ -616,7 +616,7 @@
NewRetIdxs[i] = RetTypes.size() - 1;
} else {
++NumRetValsEliminated;
- DEBUG(errs() << "DAE - Removing return value " << i << " from "
+ DEBUG(dbgs() << "DAE - Removing return value " << i << " from "
<< F->getName() << "\n");
}
}
@@ -626,7 +626,7 @@
RetTypes.push_back(RetTy);
NewRetIdxs[0] = 0;
} else {
- DEBUG(errs() << "DAE - Removing return value from " << F->getName()
+ DEBUG(dbgs() << "DAE - Removing return value from " << F->getName()
<< "\n");
++NumRetValsEliminated;
}
@@ -681,7 +681,7 @@
AttributesVec.push_back(AttributeWithIndex::get(Params.size(), Attrs));
} else {
++NumArgumentsEliminated;
- DEBUG(errs() << "DAE - Removing argument " << i << " (" << I->getName()
+ DEBUG(dbgs() << "DAE - Removing argument " << i << " (" << I->getName()
<< ") from " << F->getName() << "\n");
}
}
@@ -915,7 +915,7 @@
// removed. We can do this if they never call va_start. This loop cannot be
// fused with the next loop, because deleting a function invalidates
// information computed while surveying other functions.
- DEBUG(errs() << "DAE - Deleting dead varargs\n");
+ DEBUG(dbgs() << "DAE - Deleting dead varargs\n");
for (Module::iterator I = M.begin(), E = M.end(); I != E; ) {
Function &F = *I++;
if (F.getFunctionType()->isVarArg())
@@ -926,7 +926,7 @@
// We assume all arguments are dead unless proven otherwise (allowing us to
// determine that dead arguments passed into recursive functions are dead).
//
- DEBUG(errs() << "DAE - Determining liveness\n");
+ DEBUG(dbgs() << "DAE - Determining liveness\n");
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
SurveyFunction(*I);
More information about the llvm-commits
mailing list