[llvm-commits] [llvm] r78649 - /llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp
Daniel Dunbar
daniel at zuster.org
Mon Aug 10 23:22:47 PDT 2009
Author: ddunbar
Date: Tue Aug 11 01:22:47 2009
New Revision: 78649
URL: http://llvm.org/viewvc/llvm-project?rev=78649&view=rev
Log:
Fix a -Asserts warning.
- Since the function is never called in NDEBUG mode, just dropped the DEBUG()
uses here.
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=78649&r1=78648&r2=78649&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp (original)
+++ llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp Tue Aug 11 01:22:47 2009
@@ -66,7 +66,7 @@
}
void ExactHazardRecognizer::dumpScoreboard() {
- DEBUG(errs() << "Scoreboard:\n");
+ errs() << "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)];
- DEBUG(errs() << "\t");
+ errs() << "\t";
for (int j = 31; j >= 0; j--)
- DEBUG(errs() << ((FUs & (1 << j)) ? '1' : '0'));
- DEBUG(errs() << '\n');
+ errs() << ((FUs & (1 << j)) ? '1' : '0');
+ errs() << '\n';
}
}
More information about the llvm-commits
mailing list