diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-20 20:19:42 +0000 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-20 20:19:42 +0000 |
| commit | b1b7a2f7b63db915fbc0e7ee5e1811b8846fbd9b (patch) | |
| tree | 261dc7dc0d90304aa37c4cbaae4d5acb32d84d6b /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | 5fa36e42c43bc0816ad96597e20416a3cb8cd4dd (diff) | |
| download | llvm-b1b7a2f7b63db915fbc0e7ee5e1811b8846fbd9b.zip llvm-b1b7a2f7b63db915fbc0e7ee5e1811b8846fbd9b.tar.gz llvm-b1b7a2f7b63db915fbc0e7ee5e1811b8846fbd9b.tar.bz2 | |
[InstCombine] Fold uadd.sat(a, b) == 0 and usub.sat(a, b) == 0
This adds folds for comparing uadd.sat/usub.sat with zero:
* uadd.sat(a, b) == 0 => a == 0 && b == 0 => (a | b) == 0
* usub.sat(a, b) == 0 => a <= b
And inverted forms for !=.
Differential Revision: https://reviews.llvm.org/D69224
llvm-svn: 375374
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
