Skip to content

Commit 7da2417

Browse files
committed
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
1 parent 357033b commit 7da2417

File tree

3 files changed

+524
-51
lines changed

3 files changed

+524
-51
lines changed

0 commit comments

Comments
 (0)