aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/LoopUnrollPass.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2010-01-05 01:27:44 +0000
committerDavid Greene <greened@obbligato.org>2010-01-05 01:27:44 +0000
commitd241e38d267ec7f57adb5f2af2d70247b8d536b4 (patch)
treefd76f144285ea8bd56bac2e855add8e258d42cd1 /lib/Transforms/Scalar/LoopUnrollPass.cpp
parent163fb1f93e0964a130b5041dff67ce8184a1c631 (diff)
downloadexternal_llvm-d241e38d267ec7f57adb5f2af2d70247b8d536b4.zip
external_llvm-d241e38d267ec7f57adb5f2af2d70247b8d536b4.tar.gz
external_llvm-d241e38d267ec7f57adb5f2af2d70247b8d536b4.tar.bz2
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopUnrollPass.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopUnrollPass.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/LoopUnrollPass.cpp b/lib/Transforms/Scalar/LoopUnrollPass.cpp
index c2bf9f2..ee8cb4f 100644
--- a/lib/Transforms/Scalar/LoopUnrollPass.cpp
+++ b/lib/Transforms/Scalar/LoopUnrollPass.cpp
@@ -89,7 +89,7 @@ bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) {
LoopInfo *LI = &getAnalysis<LoopInfo>();
BasicBlock *Header = L->getHeader();
- DEBUG(errs() << "Loop Unroll: F[" << Header->getParent()->getName()
+ DEBUG(dbgs() << "Loop Unroll: F[" << Header->getParent()->getName()
<< "] Loop %" << Header->getName() << "\n");
(void)Header;
@@ -111,13 +111,13 @@ bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) {
// Enforce the threshold.
if (UnrollThreshold != NoThreshold) {
unsigned LoopSize = ApproximateLoopSize(L);
- DEBUG(errs() << " Loop Size = " << LoopSize << "\n");
+ DEBUG(dbgs() << " Loop Size = " << LoopSize << "\n");
uint64_t Size = (uint64_t)LoopSize*Count;
if (TripCount != 1 && Size > UnrollThreshold) {
- DEBUG(errs() << " Too large to fully unroll with count: " << Count
+ DEBUG(dbgs() << " Too large to fully unroll with count: " << Count
<< " because size: " << Size << ">" << UnrollThreshold << "\n");
if (!UnrollAllowPartial) {
- DEBUG(errs() << " will not try to unroll partially because "
+ DEBUG(dbgs() << " will not try to unroll partially because "
<< "-unroll-allow-partial not given\n");
return false;
}
@@ -127,10 +127,10 @@ bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) {
Count--;
}
if (Count < 2) {
- DEBUG(errs() << " could not unroll partially\n");
+ DEBUG(dbgs() << " could not unroll partially\n");
return false;
}
- DEBUG(errs() << " partially unrolling with count: " << Count << "\n");
+ DEBUG(dbgs() << " partially unrolling with count: " << Count << "\n");
}
}