Skip to content
  • Dan Gohman's avatar
    Implement "superhero" strength reduction, or full strength · 2a12ae7d
    Dan Gohman authored
    reduction of address calculations down to basic pointer arithmetic.
    This is currently off by default, as it needs a few other features
    before it becomes generally useful. And even when enabled, full
    strength reduction is only performed when it doesn't increase
    register pressure, and when several other conditions are true.
    
    This also factors out a bunch of exisiting LSR code out of
    StrengthReduceStridedIVUsers into separate functions, and tidies
    up IV insertion. This actually decreases register pressure even
    in non-superhero mode. The change in iv-users-in-other-loops.ll
    is an example of this; there are two more adds because there are
    two fewer leas, and there is less spilling.
    
    llvm-svn: 65108
    2a12ae7d
Loading