Skip to content
  • Dan Gohman's avatar
    Re-implement the main strength-reduction portion of LoopStrengthReduction. · 51ad99d2
    Dan Gohman authored
    This new version is much more aggressive about doing "full" reduction in
    cases where it reduces register pressure, and also more aggressive about
    rewriting induction variables to count down (or up) to zero when doing so
    reduces register pressure.
    
    It currently uses fairly simplistic algorithms for finding reuse
    opportunities, but it introduces a new framework allows it to combine
    multiple strategies at once to form hybrid solutions, instead of doing
    all full-reduction or all base+index.
    
    llvm-svn: 94061
    51ad99d2
Loading