summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/SparsePropagation.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-12-23 22:28:01 +0000
committerDavid Greene <greened@obbligato.org>2009-12-23 22:28:01 +0000
commitfaa00b7a7ff4a5788a9e59bfda98df81a6e0e97c (patch)
tree11b53542bb1f5039b9adbe01fc6956e945bac556 /llvm/lib/Analysis/SparsePropagation.cpp
parentdf1c497c2fe24b163ae2a022fc2bad068c08c9e9 (diff)
downloadbcm5719-llvm-faa00b7a7ff4a5788a9e59bfda98df81a6e0e97c.tar.gz
bcm5719-llvm-faa00b7a7ff4a5788a9e59bfda98df81a6e0e97c.zip
Convert debug messages to use dbgs(). Generally this means
s/errs/dbgs/g except for certain special cases. llvm-svn: 92068
Diffstat (limited to 'llvm/lib/Analysis/SparsePropagation.cpp')
-rw-r--r--llvm/lib/Analysis/SparsePropagation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/SparsePropagation.cpp b/llvm/lib/Analysis/SparsePropagation.cpp
index 487bdad6dc3..d8c207b4bd4 100644
--- a/llvm/lib/Analysis/SparsePropagation.cpp
+++ b/llvm/lib/Analysis/SparsePropagation.cpp
@@ -88,7 +88,7 @@ void SparseSolver::UpdateState(Instruction &Inst, LatticeVal V) {
/// MarkBlockExecutable - This method can be used by clients to mark all of
/// the blocks that are known to be intrinsically live in the processed unit.
void SparseSolver::MarkBlockExecutable(BasicBlock *BB) {
- DEBUG(errs() << "Marking Block Executable: " << BB->getName() << "\n");
+ DEBUG(dbgs() << "Marking Block Executable: " << BB->getName() << "\n");
BBExecutable.insert(BB); // Basic block is executable!
BBWorkList.push_back(BB); // Add the block to the work list!
}
@@ -99,7 +99,7 @@ void SparseSolver::markEdgeExecutable(BasicBlock *Source, BasicBlock *Dest) {
if (!KnownFeasibleEdges.insert(Edge(Source, Dest)).second)
return; // This edge is already known to be executable!
- DEBUG(errs() << "Marking Edge Executable: " << Source->getName()
+ DEBUG(dbgs() << "Marking Edge Executable: " << Source->getName()
<< " -> " << Dest->getName() << "\n");
if (BBExecutable.count(Dest)) {
@@ -299,7 +299,7 @@ void SparseSolver::Solve(Function &F) {
Instruction *I = InstWorkList.back();
InstWorkList.pop_back();
- DEBUG(errs() << "\nPopped off I-WL: " << *I << "\n");
+ DEBUG(dbgs() << "\nPopped off I-WL: " << *I << "\n");
// "I" got into the work list because it made a transition. See if any
// users are both live and in need of updating.
@@ -316,7 +316,7 @@ void SparseSolver::Solve(Function &F) {
BasicBlock *BB = BBWorkList.back();
BBWorkList.pop_back();
- DEBUG(errs() << "\nPopped off BBWL: " << *BB);
+ DEBUG(dbgs() << "\nPopped off BBWL: " << *BB);
// Notify all instructions in this basic block that they are newly
// executable.
OpenPOWER on IntegriCloud