Benjamin Kramer 79c500fdd4 ScalarEvolution: Compute exit counts for loops with a power-of-2 step.
If we have a loop of the form
for (unsigned n = 0; n != (k & -32); n += 32) {}
then we know that n is always divisible by 32 and the loop must
terminate. Even if we have a condition where the loop counter will
overflow it'll always hold this invariant.

PR19183. Our loop vectorizer creates this pattern and it's also
occasionally formed by loop counters derived from pointers.

llvm-svn: 204728
2014-03-25 16:25:12 +00:00
..
2013-08-22 00:51:19 +00:00
2013-08-22 00:51:19 +00:00
2013-08-22 00:51:19 +00:00
2013-08-22 00:51:19 +00:00
2014-01-24 17:20:08 +00:00
2013-08-22 00:51:19 +00:00
2013-08-22 00:51:19 +00:00
2013-08-22 00:51:19 +00:00