Skip to content
  • Andrew Trick's avatar
    indvars: LinearFunctionTestReplace for non-canonical IVs. · 7da2417c
    Andrew Trick authored
    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
    7da2417c
Loading