aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Bolka <a@bolka.at>2009-08-13 02:40:50 +0000
committerAndreas Bolka <a@bolka.at>2009-08-13 02:40:50 +0000
commit8b6e86f706c4693f6127a560ad373896390ffe42 (patch)
treee0703e17950d170ab5b8e26309b40d91b85f93dc
parentfcdc8fe71736b8433e08c1fb481c4bfda75076fb (diff)
downloadexternal_llvm-8b6e86f706c4693f6127a560ad373896390ffe42.zip
external_llvm-8b6e86f706c4693f6127a560ad373896390ffe42.tar.gz
external_llvm-8b6e86f706c4693f6127a560ad373896390ffe42.tar.bz2
Prune trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78886 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/LoopUnroll.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/LoopUnroll.cpp b/lib/Transforms/Scalar/LoopUnroll.cpp
index 7d551f1..08560e1 100644
--- a/lib/Transforms/Scalar/LoopUnroll.cpp
+++ b/lib/Transforms/Scalar/LoopUnroll.cpp
@@ -126,12 +126,12 @@ bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) {
// Find trip count
unsigned TripCount = L->getSmallConstantTripCount();
unsigned Count = UnrollCount;
-
+
// Automatically select an unroll count.
if (Count == 0) {
// Conservative heuristic: if we know the trip count, see if we can
// completely unroll (subject to the threshold, checked below); otherwise
- // try to find greatest modulo of the trip count which is still under
+ // try to find greatest modulo of the trip count which is still under
// threshold value.
if (TripCount != 0) {
Count = TripCount;
@@ -150,10 +150,10 @@ bool LoopUnroll::runOnLoop(Loop *L, LPPassManager &LPM) {
<< " because size: " << Size << ">" << UnrollThreshold << "\n";
if (UnrollAllowPartial) {
// Reduce unroll count to be modulo of TripCount for partial unrolling
- Count = UnrollThreshold / LoopSize;
+ Count = UnrollThreshold / LoopSize;
while (Count != 0 && TripCount%Count != 0) {
Count--;
- }
+ }
if (Count < 2) {
DOUT << " could not unroll partially\n";
return false;