mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92580 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb22223d5b
commit
33db62ce23
@ -109,7 +109,7 @@ private:
|
||||
|
||||
/// Schedule - Schedule the DAG using list scheduling.
|
||||
void ScheduleDAGFast::Schedule() {
|
||||
DEBUG(errs() << "********** List Scheduling **********\n");
|
||||
DEBUG(dbgs() << "********** List Scheduling **********\n");
|
||||
|
||||
NumLiveRegs = 0;
|
||||
LiveRegDefs.resize(TRI->getNumRegs(), NULL);
|
||||
@ -136,9 +136,9 @@ void ScheduleDAGFast::ReleasePred(SUnit *SU, SDep *PredEdge) {
|
||||
|
||||
#ifndef NDEBUG
|
||||
if (PredSU->NumSuccsLeft == 0) {
|
||||
errs() << "*** Scheduling failed! ***\n";
|
||||
dbgs() << "*** Scheduling failed! ***\n";
|
||||
PredSU->dump(this);
|
||||
errs() << " has been released too many times!\n";
|
||||
dbgs() << " has been released too many times!\n";
|
||||
llvm_unreachable(0);
|
||||
}
|
||||
#endif
|
||||
@ -175,7 +175,7 @@ void ScheduleDAGFast::ReleasePredecessors(SUnit *SU, unsigned CurCycle) {
|
||||
/// count of its predecessors. If a predecessor pending count is zero, add it to
|
||||
/// the Available queue.
|
||||
void ScheduleDAGFast::ScheduleNodeBottomUp(SUnit *SU, unsigned CurCycle) {
|
||||
DEBUG(errs() << "*** Scheduling [" << CurCycle << "]: ");
|
||||
DEBUG(dbgs() << "*** Scheduling [" << CurCycle << "]: ");
|
||||
DEBUG(SU->dump(this));
|
||||
|
||||
assert(CurCycle >= SU->getHeight() && "Node scheduled below its height!");
|
||||
@ -233,7 +233,7 @@ SUnit *ScheduleDAGFast::CopyAndMoveSuccessors(SUnit *SU) {
|
||||
if (!TII->unfoldMemoryOperand(*DAG, N, NewNodes))
|
||||
return NULL;
|
||||
|
||||
DEBUG(errs() << "Unfolding SU # " << SU->NodeNum << "\n");
|
||||
DEBUG(dbgs() << "Unfolding SU # " << SU->NodeNum << "\n");
|
||||
assert(NewNodes.size() == 2 && "Expected a load folding node!");
|
||||
|
||||
N = NewNodes[1];
|
||||
@ -343,7 +343,7 @@ SUnit *ScheduleDAGFast::CopyAndMoveSuccessors(SUnit *SU) {
|
||||
SU = NewSU;
|
||||
}
|
||||
|
||||
DEBUG(errs() << "Duplicating SU # " << SU->NodeNum << "\n");
|
||||
DEBUG(dbgs() << "Duplicating SU # " << SU->NodeNum << "\n");
|
||||
NewSU = Clone(SU);
|
||||
|
||||
// New SUnit has the exact same predecessors.
|
||||
@ -550,7 +550,7 @@ void ScheduleDAGFast::ListScheduleBottomUp() {
|
||||
// Issue copies, these can be expensive cross register class copies.
|
||||
SmallVector<SUnit*, 2> Copies;
|
||||
InsertCopiesAndMoveSuccs(LRDef, Reg, DestRC, RC, Copies);
|
||||
DEBUG(errs() << "Adding an edge from SU # " << TrySU->NodeNum
|
||||
DEBUG(dbgs() << "Adding an edge from SU # " << TrySU->NodeNum
|
||||
<< " to SU #" << Copies.front()->NodeNum << "\n");
|
||||
AddPred(TrySU, SDep(Copies.front(), SDep::Order, /*Latency=*/1,
|
||||
/*Reg=*/0, /*isNormalMemory=*/false,
|
||||
@ -558,7 +558,7 @@ void ScheduleDAGFast::ListScheduleBottomUp() {
|
||||
NewDef = Copies.back();
|
||||
}
|
||||
|
||||
DEBUG(errs() << "Adding an edge from SU # " << NewDef->NodeNum
|
||||
DEBUG(dbgs() << "Adding an edge from SU # " << NewDef->NodeNum
|
||||
<< " to SU #" << TrySU->NodeNum << "\n");
|
||||
LiveRegDefs[Reg] = NewDef;
|
||||
AddPred(NewDef, SDep(TrySU, SDep::Order, /*Latency=*/1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user