| commit | 7da2417c8af466cd90025d11d46ea72099e230be | [log] [tgz] |
|---|---|---|
| author | Andrew Trick <atrick@apple.com> | Mon Jul 18 20:32:31 2011 +0000 |
| committer | Andrew Trick <atrick@apple.com> | Mon Jul 18 20:32:31 2011 +0000 |
| tree | a858c28af803d19ad3bd64c218bd9a289fcc0508 | |
| parent | 357033b33738f97407e6b7e84f6a9bf2e139d943 [diff] |
indvars: LinearFunctionTestReplace for non-canonical IVs. For -disable-iv-rewrite, perform LFTR without generating a new "canonical" induction variable. Instead find the "best" existing induction variable for use in the loop exit test and compute the final value of that IV for use in the new loop exit test. In short, convert to a simple eq/ne exit test as long as it's cheap to do so. llvm-svn: 135420