mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-02 04:39:35 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84fa8229bb
commit
00dec1bbf9
@ -139,8 +139,8 @@ static void VerifyPHIs(MachineFunction &MF, bool CheckExtra) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!Found) {
|
if (!Found) {
|
||||||
errs() << "Malformed PHI in BB#" << MBB->getNumber() << ": " << *MI;
|
dbgs() << "Malformed PHI in BB#" << MBB->getNumber() << ": " << *MI;
|
||||||
errs() << " missing input from predecessor BB#"
|
dbgs() << " missing input from predecessor BB#"
|
||||||
<< PredBB->getNumber() << '\n';
|
<< PredBB->getNumber() << '\n';
|
||||||
llvm_unreachable(0);
|
llvm_unreachable(0);
|
||||||
}
|
}
|
||||||
@ -150,14 +150,14 @@ static void VerifyPHIs(MachineFunction &MF, bool CheckExtra) {
|
|||||||
MachineBasicBlock *PHIBB = MI->getOperand(i+1).getMBB();
|
MachineBasicBlock *PHIBB = MI->getOperand(i+1).getMBB();
|
||||||
if (CheckExtra && !Preds.count(PHIBB)) {
|
if (CheckExtra && !Preds.count(PHIBB)) {
|
||||||
// This is not a hard error.
|
// This is not a hard error.
|
||||||
errs() << "Warning: malformed PHI in BB#" << MBB->getNumber()
|
dbgs() << "Warning: malformed PHI in BB#" << MBB->getNumber()
|
||||||
<< ": " << *MI;
|
<< ": " << *MI;
|
||||||
errs() << " extra input from predecessor BB#"
|
dbgs() << " extra input from predecessor BB#"
|
||||||
<< PHIBB->getNumber() << '\n';
|
<< PHIBB->getNumber() << '\n';
|
||||||
}
|
}
|
||||||
if (PHIBB->getNumber() < 0) {
|
if (PHIBB->getNumber() < 0) {
|
||||||
errs() << "Malformed PHI in BB#" << MBB->getNumber() << ": " << *MI;
|
dbgs() << "Malformed PHI in BB#" << MBB->getNumber() << ": " << *MI;
|
||||||
errs() << " non-existing BB#" << PHIBB->getNumber() << '\n';
|
dbgs() << " non-existing BB#" << PHIBB->getNumber() << '\n';
|
||||||
llvm_unreachable(0);
|
llvm_unreachable(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -173,7 +173,7 @@ bool TailDuplicatePass::TailDuplicateBlocks(MachineFunction &MF) {
|
|||||||
bool MadeChange = false;
|
bool MadeChange = false;
|
||||||
|
|
||||||
if (PreRegAlloc && TailDupVerify) {
|
if (PreRegAlloc && TailDupVerify) {
|
||||||
DEBUG(errs() << "\n*** Before tail-duplicating\n");
|
DEBUG(dbgs() << "\n*** Before tail-duplicating\n");
|
||||||
VerifyPHIs(MF, true);
|
VerifyPHIs(MF, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -481,7 +481,7 @@ TailDuplicatePass::TailDuplicate(MachineBasicBlock *TailBB, MachineFunction &MF,
|
|||||||
if (InstrCount > 1 && HasCall)
|
if (InstrCount > 1 && HasCall)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
DEBUG(errs() << "\n*** Tail-duplicating BB#" << TailBB->getNumber() << '\n');
|
DEBUG(dbgs() << "\n*** Tail-duplicating BB#" << TailBB->getNumber() << '\n');
|
||||||
|
|
||||||
// Iterate through all the unique predecessors and tail-duplicate this
|
// Iterate through all the unique predecessors and tail-duplicate this
|
||||||
// block into them, if possible. Copying the list ahead of time also
|
// block into them, if possible. Copying the list ahead of time also
|
||||||
@ -510,7 +510,7 @@ TailDuplicatePass::TailDuplicate(MachineBasicBlock *TailBB, MachineFunction &MF,
|
|||||||
if (PredBB->isLayoutSuccessor(TailBB) && PredBB->canFallThrough())
|
if (PredBB->isLayoutSuccessor(TailBB) && PredBB->canFallThrough())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
DEBUG(errs() << "\nTail-duplicating into PredBB: " << *PredBB
|
DEBUG(dbgs() << "\nTail-duplicating into PredBB: " << *PredBB
|
||||||
<< "From Succ: " << *TailBB);
|
<< "From Succ: " << *TailBB);
|
||||||
|
|
||||||
TDBBs.push_back(PredBB);
|
TDBBs.push_back(PredBB);
|
||||||
@ -570,7 +570,7 @@ TailDuplicatePass::TailDuplicate(MachineBasicBlock *TailBB, MachineFunction &MF,
|
|||||||
if (!PriorUnAnalyzable && PriorCond.empty() && !PriorTBB &&
|
if (!PriorUnAnalyzable && PriorCond.empty() && !PriorTBB &&
|
||||||
TailBB->pred_size() == 1 && PrevBB->succ_size() == 1 &&
|
TailBB->pred_size() == 1 && PrevBB->succ_size() == 1 &&
|
||||||
!TailBB->hasAddressTaken()) {
|
!TailBB->hasAddressTaken()) {
|
||||||
DEBUG(errs() << "\nMerging into block: " << *PrevBB
|
DEBUG(dbgs() << "\nMerging into block: " << *PrevBB
|
||||||
<< "From MBB: " << *TailBB);
|
<< "From MBB: " << *TailBB);
|
||||||
if (PreRegAlloc) {
|
if (PreRegAlloc) {
|
||||||
DenseMap<unsigned, unsigned> LocalVRMap;
|
DenseMap<unsigned, unsigned> LocalVRMap;
|
||||||
@ -620,7 +620,7 @@ TailDuplicatePass::TailDuplicate(MachineBasicBlock *TailBB, MachineFunction &MF,
|
|||||||
/// function, updating the CFG.
|
/// function, updating the CFG.
|
||||||
void TailDuplicatePass::RemoveDeadBlock(MachineBasicBlock *MBB) {
|
void TailDuplicatePass::RemoveDeadBlock(MachineBasicBlock *MBB) {
|
||||||
assert(MBB->pred_empty() && "MBB must be dead!");
|
assert(MBB->pred_empty() && "MBB must be dead!");
|
||||||
DEBUG(errs() << "\nRemoving MBB: " << *MBB);
|
DEBUG(dbgs() << "\nRemoving MBB: " << *MBB);
|
||||||
|
|
||||||
// Remove all successors.
|
// Remove all successors.
|
||||||
while (!MBB->succ_empty())
|
while (!MBB->succ_empty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user