aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-19 21:50:18 +0000
committerChris Lattner <sabre@nondot.org>2005-01-19 21:50:18 +0000
commit6fb5a4a5f83355f431a652522a38ca4777f69bf9 (patch)
tree05f4710f2a88e837b48521ae9fb25ab4b1bde9ab /lib/CodeGen/TwoAddressInstructionPass.cpp
parentd4dd775a24acf544ee4181d7b5a2520108b47b5a (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