Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Greene 2010-01-05 01:27:47 +00:00
parent d241e38d26
commit cb33fd17cc

View File

@ -456,10 +456,10 @@ bool MemCpyOpt::processStore(StoreInst *SI, BasicBlock::iterator &BBI) {
ConstantInt::get(Type::getInt32Ty(Context), Range.Alignment) ConstantInt::get(Type::getInt32Ty(Context), Range.Alignment)
}; };
Value *C = CallInst::Create(MemSetF, Ops, Ops+4, "", InsertPt); Value *C = CallInst::Create(MemSetF, Ops, Ops+4, "", InsertPt);
DEBUG(errs() << "Replace stores:\n"; DEBUG(dbgs() << "Replace stores:\n";
for (unsigned i = 0, e = Range.TheStores.size(); i != e; ++i) for (unsigned i = 0, e = Range.TheStores.size(); i != e; ++i)
errs() << *Range.TheStores[i]; dbgs() << *Range.TheStores[i];
errs() << "With: " << *C); C=C; dbgs() << "With: " << *C); C=C;
// Don't invalidate the iterator // Don't invalidate the iterator
BBI = BI; BBI = BI;
@ -725,7 +725,7 @@ bool MemCpyOpt::processMemMove(MemMoveInst *M) {
AliasAnalysis::NoAlias) AliasAnalysis::NoAlias)
return false; return false;
DEBUG(errs() << "MemCpyOpt: Optimizing memmove -> memcpy: " << *M << "\n"); DEBUG(dbgs() << "MemCpyOpt: Optimizing memmove -> memcpy: " << *M << "\n");
// If not, then we know we can transform this. // If not, then we know we can transform this.
Module *Mod = M->getParent()->getParent()->getParent(); Module *Mod = M->getParent()->getParent()->getParent();