Jakob Stoklund Olesen 740cd657f3 Don't break the IV update in TLI::SimplifySetCC().
LSR always tries to make the ICmp in the loop latch use the incremented
induction variable. This allows the induction variable to be kept in a
single register.

When the induction variable limit is equal to the stride,
SimplifySetCC() would break LSR's hard work by transforming:

   (icmp (add iv, stride), stride) --> (cmp iv, 0)

This forced us to use lea for the IC update, preventing the simpler
incl+cmp.

<rdar://problem/7643606>
<rdar://problem/11184260>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154119 91177308-0d34-0410-b5e6-96231b3b80d8
2012-04-05 20:30:20 +00:00
..
2011-03-11 21:52:04 +00:00
2011-03-11 21:52:04 +00:00
2010-09-03 18:37:12 +00:00
2011-03-11 21:52:04 +00:00
2011-11-12 22:39:34 +00:00
2011-04-25 10:12:01 +00:00
2011-07-01 21:12:19 +00:00
2011-07-01 21:12:19 +00:00
2011-07-01 21:12:19 +00:00
2011-07-13 00:42:17 +00:00
2011-07-13 00:42:17 +00:00
2011-07-13 00:42:17 +00:00
2011-07-13 00:42:17 +00:00