diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-19 21:50:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-19 21:50:18 +0000 |
commit | 6fb5a4a5f83355f431a652522a38ca4777f69bf9 (patch) | |
tree | 05f4710f2a88e837b48521ae9fb25ab4b1bde9ab /lib/CodeGen/TwoAddressInstructionPass.cpp | |
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
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
0 files changed, 0 insertions, 0 deletions