mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92611 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
504c7d8973
commit
68d67fdf20
@ -237,7 +237,7 @@ void CodeGenPrepare::EliminateMostlyEmptyBlock(BasicBlock *BB) {
|
|||||||
BranchInst *BI = cast<BranchInst>(BB->getTerminator());
|
BranchInst *BI = cast<BranchInst>(BB->getTerminator());
|
||||||
BasicBlock *DestBB = BI->getSuccessor(0);
|
BasicBlock *DestBB = BI->getSuccessor(0);
|
||||||
|
|
||||||
DEBUG(errs() << "MERGING MOSTLY EMPTY BLOCKS - BEFORE:\n" << *BB << *DestBB);
|
DEBUG(dbgs() << "MERGING MOSTLY EMPTY BLOCKS - BEFORE:\n" << *BB << *DestBB);
|
||||||
|
|
||||||
// If the destination block has a single pred, then this is a trivial edge,
|
// If the destination block has a single pred, then this is a trivial edge,
|
||||||
// just collapse it.
|
// just collapse it.
|
||||||
@ -251,7 +251,7 @@ void CodeGenPrepare::EliminateMostlyEmptyBlock(BasicBlock *BB) {
|
|||||||
if (isEntry && BB != &BB->getParent()->getEntryBlock())
|
if (isEntry && BB != &BB->getParent()->getEntryBlock())
|
||||||
BB->moveBefore(&BB->getParent()->getEntryBlock());
|
BB->moveBefore(&BB->getParent()->getEntryBlock());
|
||||||
|
|
||||||
DEBUG(errs() << "AFTER:\n" << *DestBB << "\n\n\n");
|
DEBUG(dbgs() << "AFTER:\n" << *DestBB << "\n\n\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -294,7 +294,7 @@ void CodeGenPrepare::EliminateMostlyEmptyBlock(BasicBlock *BB) {
|
|||||||
}
|
}
|
||||||
BB->eraseFromParent();
|
BB->eraseFromParent();
|
||||||
|
|
||||||
DEBUG(errs() << "AFTER:\n" << *DestBB << "\n\n\n");
|
DEBUG(dbgs() << "AFTER:\n" << *DestBB << "\n\n\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -591,7 +591,7 @@ bool CodeGenPrepare::OptimizeMemoryInst(Instruction *MemoryInst, Value *Addr,
|
|||||||
|
|
||||||
// If all the instructions matched are already in this BB, don't do anything.
|
// If all the instructions matched are already in this BB, don't do anything.
|
||||||
if (!AnyNonLocal) {
|
if (!AnyNonLocal) {
|
||||||
DEBUG(errs() << "CGP: Found local addrmode: " << AddrMode << "\n");
|
DEBUG(dbgs() << "CGP: Found local addrmode: " << AddrMode << "\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -606,12 +606,12 @@ bool CodeGenPrepare::OptimizeMemoryInst(Instruction *MemoryInst, Value *Addr,
|
|||||||
// computation.
|
// computation.
|
||||||
Value *&SunkAddr = SunkAddrs[Addr];
|
Value *&SunkAddr = SunkAddrs[Addr];
|
||||||
if (SunkAddr) {
|
if (SunkAddr) {
|
||||||
DEBUG(errs() << "CGP: Reusing nonlocal addrmode: " << AddrMode << " for "
|
DEBUG(dbgs() << "CGP: Reusing nonlocal addrmode: " << AddrMode << " for "
|
||||||
<< *MemoryInst);
|
<< *MemoryInst);
|
||||||
if (SunkAddr->getType() != Addr->getType())
|
if (SunkAddr->getType() != Addr->getType())
|
||||||
SunkAddr = new BitCastInst(SunkAddr, Addr->getType(), "tmp", InsertPt);
|
SunkAddr = new BitCastInst(SunkAddr, Addr->getType(), "tmp", InsertPt);
|
||||||
} else {
|
} else {
|
||||||
DEBUG(errs() << "CGP: SINKING nonlocal addrmode: " << AddrMode << " for "
|
DEBUG(dbgs() << "CGP: SINKING nonlocal addrmode: " << AddrMode << " for "
|
||||||
<< *MemoryInst);
|
<< *MemoryInst);
|
||||||
const Type *IntPtrTy =
|
const Type *IntPtrTy =
|
||||||
TLI->getTargetData()->getIntPtrType(AccessTy->getContext());
|
TLI->getTargetData()->getIntPtrType(AccessTy->getContext());
|
||||||
|
Loading…
Reference in New Issue
Block a user