aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/Reassociate.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-07-12 11:54:45 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-07-12 11:54:45 +0000
commit4fc719e60767c80541a21c99d139a904b4c948df (patch)
tree5b9103623fe52fe2f7356dcd1e8a3f202214a355 /lib/Transforms/Scalar/Reassociate.cpp
parente99e0775226f09a4ac5e135c3c9bc1a836f09d15 (diff)
instcombine: fold (x & y) | (~x & z) and (x & y) ^ (~x & z) into ((y ^ z) & x) ^ z which is one instruction shorter. (PR6773)
before: %and = and i32 %y, %x %neg = xor i32 %x, -1 %and4 = and i32 %z, %neg %xor = xor i32 %and4, %and after: %xor1 = xor i32 %z, %y %and2 = and i32 %xor1, %x %xor = xor i32 %and2, %z git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/Reassociate.cpp')
0 files changed, 0 insertions, 0 deletions