Chris Lattner 5a9660aa71 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

llvm-svn: 19706
2005-01-19 21:50:18 +00:00
..
2005-01-12 04:51:37 +00:00
2005-01-08 20:07:03 +00:00
2004-12-20 04:15:44 +00:00
2005-01-16 04:23:22 +00:00