commit | 6fb5a4a5f83355f431a652522a38ca4777f69bf9 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Jan 19 21:50:18 2005 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Jan 19 21:50:18 2005 +0000 |
tree | 05f4710f2a88e837b48521ae9fb25ab4b1bde9ab | |
parent | d4dd775a24acf544ee4181d7b5a2520108b47b5a [diff] |
Add two optimizations. The first folds (X+Y)-X -> Y The second folds operations into selects, e.g. (select C, (X+Y), (Y+Z)) -> (Y+(select C, X, Z) This occurs a few times across spec, e.g. select add/sub mesa: 83 0 povray: 5 2 gcc 4 2 parser 0 22 perlbmk 13 30 twolf 0 3 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19706 91177308-0d34-0410-b5e6-96231b3b80d8