diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2020-08-06 11:02:29 +0300 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2020-08-06 11:50:34 +0300 |
| commit | 8878b79cfe99e1ef36a265539329cd323e05a40d (patch) | |
| tree | 6f10e6deab16c84d9408f0b30cf0ede85ec407f7 /lldb/test/API/python_api | |
| parent | 5060f5682b011d2a8c708b3c1b16bd4e0c408afb (diff) | |
[InstCombine] (-NSW x) ==/!= x --> x ==/!= 0 (PR39480)
Name: (-x) == x --> x == 0
%neg_x = sub nsw i8 0, %x ; %x must not be INT_MIN
%r = icmp eq i8 %neg_x, %x
=>
%r = icmp eq i8 %x, 0
Name: (-x) != x --> x != 0
%neg_x = sub nsw i8 0, %x ; %x must not be INT_MIN
%r = icmp ne i8 %neg_x, %x
=>
%r = icmp ne i8 %x, 0
https://rise4fun.com/Alive/4slH
https://bugs.llvm.org/show_bug.cgi?id=39480
Diffstat (limited to 'lldb/test/API/python_api')
0 files changed, 0 insertions, 0 deletions
