Skip to content
  • Chris Lattner's avatar
    Fix two significant bugs in LSR: · 2959f000
    Chris Lattner authored
    1. When rewriting code in outer loops, sometimes we would insert code into
       inner loops that is invariant in that loop.
    2. Notice that 4*(2+x) is 8+4*x and use that to simplify expressions.
    
    This is a performance neutral change.
    
    llvm-svn: 25964
    2959f000
Loading