summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Bolka <a@bolka.at>2009-08-13 02:45:03 +0000
committerAndreas Bolka <a@bolka.at>2009-08-13 02:45:03 +0000
commit52e539cbb828f2c7fe4df5efef484aaf805019e9 (patch)
tree14f8ca730098c5494b291755ca3f2a40300bbdf5
parentf1f2dc24577f4bb48563e4515324883027275736 (diff)
downloadllvm-52e539cbb828f2c7fe4df5efef484aaf805019e9.tar.gz
llvm-52e539cbb828f2c7fe4df5efef484aaf805019e9.tar.bz2
llvm-52e539cbb828f2c7fe4df5efef484aaf805019e9.tar.xz
DEBUGify some DOUTs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78887 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/LoopUnroll.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Transforms/Scalar/LoopUnroll.cpp b/lib/Transforms/Scalar/LoopUnroll.cpp
index 08560e1824..161874f88f 100644
--- a/lib/Transforms/Scalar/LoopUnroll.cpp
+++ b/lib/Transforms/Scalar/LoopUnroll.cpp
@@ -143,11 +143,11 @@ bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) {
// 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 @@ bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) {
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;
}
}