mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Change errs() to dbgs().
llvm-svn: 92580
This commit is contained in:
parent
4f5be2f621
commit
54706ebebb
@ -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…
Reference in New Issue
Block a user