[llvm-commits] [llvm] r92515 - /llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp
David Greene
greened at obbligato.org
Mon Jan 4 13:26:07 PST 2010
Author: greened
Date: Mon Jan 4 15:26:07 2010
New Revision: 92515
URL: http://llvm.org/viewvc/llvm-project?rev=92515&view=rev
Log:
Change errs() to dbgs().
Modified:
llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp
Modified: llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp?rev=92515&r1=92514&r2=92515&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp (original)
+++ llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp Mon Jan 4 15:26:07 2010
@@ -48,7 +48,7 @@
Scoreboard = new unsigned[ScoreboardDepth];
ScoreboardHead = 0;
- DEBUG(errs() << "Using exact hazard recognizer: ScoreboardDepth = "
+ DEBUG(dbgs() << "Using exact hazard recognizer: ScoreboardDepth = "
<< ScoreboardDepth << '\n');
}
@@ -66,7 +66,7 @@
}
void ExactHazardRecognizer::dumpScoreboard() {
- errs() << "Scoreboard:\n";
+ dbgs() << "Scoreboard:\n";
unsigned last = ScoreboardDepth - 1;
while ((last > 0) && (Scoreboard[getFutureIndex(last)] == 0))
@@ -74,10 +74,10 @@
for (unsigned i = 0; i <= last; i++) {
unsigned FUs = Scoreboard[getFutureIndex(i)];
- errs() << "\t";
+ dbgs() << "\t";
for (int j = 31; j >= 0; j--)
- errs() << ((FUs & (1 << j)) ? '1' : '0');
- errs() << '\n';
+ dbgs() << ((FUs & (1 << j)) ? '1' : '0');
+ dbgs() << '\n';
}
}
@@ -102,8 +102,8 @@
unsigned index = getFutureIndex(cycle + i);
unsigned freeUnits = IS->getUnits() & ~Scoreboard[index];
if (!freeUnits) {
- DEBUG(errs() << "*** Hazard in cycle " << (cycle + i) << ", ");
- DEBUG(errs() << "SU(" << SU->NodeNum << "): ");
+ DEBUG(dbgs() << "*** Hazard in cycle " << (cycle + i) << ", ");
+ DEBUG(dbgs() << "SU(" << SU->NodeNum << "): ");
DEBUG(SU->getInstr()->dump());
return Hazard;
}
More information about the llvm-commits
mailing list