diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-07-12 11:54:45 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-07-12 11:54:45 +0000 |
commit | 35473faa5056aa3888ac20091f76fece02367f44 (patch) | |
tree | 241dff03b0e0134af63f22816e1b3fd4ff8fa229 /llvm/lib/Transforms/Scalar/TailDuplication.cpp | |
parent | f9610827ced751eddcbf1b6f9db2abc987b24c53 (diff) | |
download | bcm5719-llvm-35473faa5056aa3888ac20091f76fece02367f44.tar.gz bcm5719-llvm-35473faa5056aa3888ac20091f76fece02367f44.zip |
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
llvm-svn: 108136
Diffstat (limited to 'llvm/lib/Transforms/Scalar/TailDuplication.cpp')
0 files changed, 0 insertions, 0 deletions