mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-14 00:14:19 +00:00
Prune trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78886 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
689ad6ef3f
commit
f1f2dc2457
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user