diff options
| author | David Green <david.green@arm.com> | 2019-10-31 12:42:36 +0000 |
|---|---|---|
| committer | David Green <david.green@arm.com> | 2019-10-31 12:45:38 +0000 |
| commit | a5f7bc0de72f1c631ef13d2cccf2b77c9a030e7d (patch) | |
| tree | c27ccfd23b13f4097f9d9b8bd39f70ca3ad9feae /debuginfo-tests/llgdb-tests/nested-struct.cpp | |
| parent | a8db456b53a1783e2c8b3f3a6666dfa715a885d4 (diff) | |
[InstCombine] Canonicalize uadd.with.overflow to uadd.sat
This adds some patterns to transform uadd.with.overflow to uadd.sat
(with usub.with.overflow to usub.sat too). The patterns selects from
UINTMAX (or 0 for subs) depending on whether the operation overflowed.
Signed patterns are a little more involved (they can wrap in two
directions), but can be added here in a followup patch too.
Differential Revision: https://reviews.llvm.org/D69245
Diffstat (limited to 'debuginfo-tests/llgdb-tests/nested-struct.cpp')
0 files changed, 0 insertions, 0 deletions
