aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2021-11-24 11:18:12 -0800
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2021-11-29 11:20:34 -0800
commit5c6b9e1622b10a543ea4210996d2732a6e5183da (patch)
tree892f51b080c5d138f1762c46741b166bf31bdb32 /lldb/source/Plugins/ScriptInterpreter/Python
parent3c32c568844c745e3fe7fa72ce3aa65340e545bc (diff)
downloadllvm-5c6b9e1622b10a543ea4210996d2732a6e5183da.zip
llvm-5c6b9e1622b10a543ea4210996d2732a6e5183da.tar.gz
llvm-5c6b9e1622b10a543ea4210996d2732a6e5183da.tar.bz2
[InstCombine] (~(a | b) & c) | ~(c | (a ^ b)) -> ~((a | b) & (c | (b ^ a)))
``` ---------------------------------------- define i3 @src(i3 %a, i3 %b, i3 %c) { %0: %or1 = or i3 %b, %c %not1 = xor i3 %or1, 7 %and1 = and i3 %a, %not1 %xor1 = xor i3 %b, %c %or2 = or i3 %xor1, %a %not2 = xor i3 %or2, 7 %or3 = or i3 %and1, %not2 ret i3 %or3 } => define i3 @tgt(i3 %a, i3 %b, i3 %c) { %0: %obc = or i3 %b, %c %xbc = xor i3 %b, %c %o = or i3 %a, %xbc %and = and i3 %obc, %o %r = xor i3 %and, 7 ret i3 %r } Transformation seems to be correct! ``` Differential Revision: https://reviews.llvm.org/D112955
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions