summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-02-18 15:21:39 +0000
committerSanjay Patel <spatel@rotateright.com>2019-02-18 15:21:39 +0000
commit079b610c29b4a428b3ae7b64dbac0378facf6632 (patch)
treea27f3109e41970dfd1cc9a248b4067002c5f4beb /lldb/packages/Python/lldbsuite/test
parent81b02590d84bc9b5d10143f9759cc36ff80c33ad (diff)
downloadbcm5719-llvm-079b610c29b4a428b3ae7b64dbac0378facf6632.tar.gz
bcm5719-llvm-079b610c29b4a428b3ae7b64dbac0378facf6632.zip
[InstCombine] reduce even more unsigned saturated add with 'not' op
We want to use the sum in the icmp to allow matching with m_UAddWithOverflow and eliminate the 'not'. This is discussed in D51929 and is another step towards solving PR14613: https://bugs.llvm.org/show_bug.cgi?id=14613 Name: uaddsat, -1 fval %notx = xor i32 %x, -1 %a = add i32 %x, %y %c = icmp ugt i32 %notx, %y %r = select i1 %c, i32 %a, i32 -1 => %a = add i32 %x, %y %c2 = icmp ugt i32 %y, %a %r = select i1 %c2, i32 -1, i32 %a Name: uaddsat, -1 fval + ult %notx = xor i32 %x, -1 %a = add i32 %x, %y %c = icmp ult i32 %y, %notx %r = select i1 %c, i32 %a, i32 -1 => %a = add i32 %x, %y %c2 = icmp ugt i32 %y, %a %r = select i1 %c2, i32 -1, i32 %a https://rise4fun.com/Alive/nTp llvm-svn: 354276
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud