commit | 221fc3c6d69bd3854e9121f51e3283492c222ab7 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Feb 04 07:36:50 2006 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Feb 04 07:36:50 2006 +0000 |
tree | 908ccba0960ac8bbe3da9767ab871d4fb6040e74 | |
parent | a6973c348bb92e672cad5b599cc4bff09c9e4b10 [diff] |
Fix two significant bugs in LSR: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25964 91177308-0d34-0410-b5e6-96231b3b80d8