diff options
author | David Green <david.green@arm.com> | 2019-11-17 10:40:26 +0000 |
---|---|---|
committer | David Green <david.green@arm.com> | 2019-11-17 10:42:39 +0000 |
commit | 03fce6b12e677144968045288df60da92fea2968 (patch) | |
tree | 695ed9dc4c2dbb7f88b8d8ca2be5d48429034b26 /lldb/packages/Python/lldbsuite/support/gmodules.py | |
parent | 7bed2cb8535085cf041f6f5d0c65135a898c302e (diff) | |
download | bcm5719-llvm-03fce6b12e677144968045288df60da92fea2968.tar.gz bcm5719-llvm-03fce6b12e677144968045288df60da92fea2968.zip |
[InstCombine] Canonicalize sadd.with.overflow with clamp to sadd.sat
This adds to D69245, adding extra signed patterns for folding from a
sadd_with_overflow to a sadd_sat. These are more complex than the
unsigned patterns, as the overflow can occur in either direction.
For the add case, the positive overflow can only occur if both of the
values are positive (same for both the values being negative). So there
is an extra select on whether to use the positive or negative overflow
limit.
Differential Revision: https://reviews.llvm.org/D69252
Diffstat (limited to 'lldb/packages/Python/lldbsuite/support/gmodules.py')
0 files changed, 0 insertions, 0 deletions