[llvm-commits] [llvm] r78887 - /llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp
Andreas Bolka
a at bolka.at
Wed Aug 12 19:45:03 PDT 2009
Author: abolka
Date: Wed Aug 12 21:45:03 2009
New Revision: 78887
URL: http://llvm.org/viewvc/llvm-project?rev=78887&view=rev
Log:
DEBUGify some DOUTs.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp?rev=78887&r1=78886&r2=78887&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnroll.cpp Wed Aug 12 21:45:03 2009
@@ -143,11 +143,11 @@
// Enforce the threshold.
if (UnrollThreshold != NoThreshold) {
unsigned LoopSize = ApproximateLoopSize(L);
- DOUT << " Loop Size = " << LoopSize << "\n";
+ DEBUG(errs() << " Loop Size = " << LoopSize << "\n");
uint64_t Size = (uint64_t)LoopSize*Count;
if (TripCount != 1 && Size > UnrollThreshold) {
- DOUT << " Too large to fully unroll with count: " << Count
- << " because size: " << Size << ">" << UnrollThreshold << "\n";
+ DEBUG(errs() << " Too large to fully unroll with count: " << Count
+ << " because size: " << Size << ">" << UnrollThreshold << "\n");
if (UnrollAllowPartial) {
// Reduce unroll count to be modulo of TripCount for partial unrolling
Count = UnrollThreshold / LoopSize;
@@ -155,14 +155,15 @@
Count--;
}
if (Count < 2) {
- DOUT << " could not unroll partially\n";
+ DEBUG(errs() << " could not unroll partially\n");
return false;
} else {
- DOUT << " partially unrolling with count: " << Count << "\n";
+ DEBUG(errs() << " partially unrolling with count: "
+ << Count << "\n");
}
} else {
- DOUT << " will not try to unroll partially because "
- << "-unroll-allow-partial not given\n";
+ DEBUG(errs() << " will not try to unroll partially because "
+ << "-unroll-allow-partial not given\n");
return false;
}
}
More information about the llvm-commits
mailing list