| commit | 2959f0003e2eeb7808dd6a6c68fbc609212152df | [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 | e63b92aee65a5d67638b152e4aea99bdce2e4eaf | |
| parent | a1e895cf9790d6df626565df8d9c0ded9b4b7014 [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. llvm-svn: 25964