llvm.org GIT mirror llvm / f1f2dc2
Prune trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78886 91177308-0d34-0410-b5e6-96231b3b80d8 Andreas Bolka 10 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
125125 // Find trip count
126126 unsigned TripCount = L->getSmallConstantTripCount();
127127 unsigned Count = UnrollCount;
128
128
129129 // Automatically select an unroll count.
130130 if (Count == 0) {
131131 // Conservative heuristic: if we know the trip count, see if we can
132132 // completely unroll (subject to the threshold, checked below); otherwise
133 // try to find greatest modulo of the trip count which is still under
133 // try to find greatest modulo of the trip count which is still under
134134 // threshold value.
135135 if (TripCount != 0) {
136136 Count = TripCount;
149149 << " because size: " << Size << ">" << UnrollThreshold << "\n";
150150 if (UnrollAllowPartial) {
151151 // Reduce unroll count to be modulo of TripCount for partial unrolling
152 Count = UnrollThreshold / LoopSize;
152 Count = UnrollThreshold / LoopSize;
153153 while (Count != 0 && TripCount%Count != 0) {
154154 Count--;
155 }
155 }
156156 if (Count < 2) {
157157 DOUT << " could not unroll partially\n";
158158 return false;