diff options
author | David Greene <greened@obbligato.org> | 2010-01-05 01:27:33 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2010-01-05 01:27:33 +0000 |
commit | 3a79df0993d9a320a1496b5d766886c4e99de7a9 (patch) | |
tree | 27e0f528c39df8ab8d7fe35b3ae0d89250a6f5b2 /llvm/lib/Transforms/Scalar/TailDuplication.cpp | |
parent | 0fd862254e6dce100a802bce806ac112257aacdb (diff) | |
download | bcm5719-llvm-3a79df0993d9a320a1496b5d766886c4e99de7a9.tar.gz bcm5719-llvm-3a79df0993d9a320a1496b5d766886c4e99de7a9.zip |
Change errs() to dbgs().
llvm-svn: 92620
Diffstat (limited to 'llvm/lib/Transforms/Scalar/TailDuplication.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/TailDuplication.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/TailDuplication.cpp b/llvm/lib/Transforms/Scalar/TailDuplication.cpp index b06ae3def00..2306a77670f 100644 --- a/llvm/lib/Transforms/Scalar/TailDuplication.cpp +++ b/llvm/lib/Transforms/Scalar/TailDuplication.cpp @@ -243,13 +243,13 @@ void TailDup::eliminateUnconditionalBranch(BranchInst *Branch) { BasicBlock *DestBlock = Branch->getSuccessor(0); assert(SourceBlock != DestBlock && "Our predicate is broken!"); - DEBUG(errs() << "TailDuplication[" << SourceBlock->getParent()->getName() + DEBUG(dbgs() << "TailDuplication[" << SourceBlock->getParent()->getName() << "]: Eliminating branch: " << *Branch); // See if we can avoid duplicating code by moving it up to a dominator of both // blocks. if (BasicBlock *DomBlock = FindObviousSharedDomOf(SourceBlock, DestBlock)) { - DEBUG(errs() << "Found shared dominator: " << DomBlock->getName() << "\n"); + DEBUG(dbgs() << "Found shared dominator: " << DomBlock->getName() << "\n"); // If there are non-phi instructions in DestBlock that have no operands // defined in DestBlock, and if the instruction has no side effects, we can @@ -272,7 +272,7 @@ void TailDup::eliminateUnconditionalBranch(BranchInst *Branch) { // Remove from DestBlock, move right before the term in DomBlock. DestBlock->getInstList().remove(I); DomBlock->getInstList().insert(DomBlock->getTerminator(), I); - DEBUG(errs() << "Hoisted: " << *I); + DEBUG(dbgs() << "Hoisted: " << *I); } } } |