[llvm-commits] [llvm] r92623 - /llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp
David Greene
greened at obbligato.org
Mon Jan 4 17:27:44 PST 2010
Author: greened
Date: Mon Jan 4 19:27:44 2010
New Revision: 92623
URL: http://llvm.org/viewvc/llvm-project?rev=92623&view=rev
Log:
Change errs() to dbgs().
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp?rev=92623&r1=92622&r2=92623&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopUnrollPass.cpp Mon Jan 4 19:27:44 2010
@@ -89,7 +89,7 @@
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 @@
// 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 @@
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");
}
}
More information about the llvm-commits
mailing list