diff options
author | Andreas Bolka <a@bolka.at> | 2009-08-13 02:40:50 +0000 |
---|---|---|
committer | Andreas Bolka <a@bolka.at> | 2009-08-13 02:40:50 +0000 |
commit | 177a2f5313448955db0492151834810ead9c45ed (patch) | |
tree | 0f6c78645cf8e97c54fa6b2c82d25bea8163e858 /llvm/lib/Transforms/Scalar/LoopUnroll.cpp | |
parent | 3a1efd11bb21f4b30e97b1b2a33c98121f0b89c4 (diff) | |
download | bcm5719-llvm-177a2f5313448955db0492151834810ead9c45ed.tar.gz bcm5719-llvm-177a2f5313448955db0492151834810ead9c45ed.zip |
Prune trailing whitespace.
llvm-svn: 78886
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopUnroll.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnroll.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnroll.cpp b/llvm/lib/Transforms/Scalar/LoopUnroll.cpp index 7d551f1001e..08560e18249 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnroll.cpp +++ b/llvm/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; |