diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-26 22:27:52 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-28 21:52:29 +0200 |
commit | ffe05dd12593f979f235cd34fd467a4c30e051f8 (patch) | |
tree | 29e0a1189edbbd12142cf20eb1f1748f600a914a /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | |
parent | 6aa7228a629d81af78d4f701b7defb701f4b9283 (diff) | |
download | llvm-ffe05dd12593f979f235cd34fd467a4c30e051f8.zip llvm-ffe05dd12593f979f235cd34fd467a4c30e051f8.tar.gz llvm-ffe05dd12593f979f235cd34fd467a4c30e051f8.tar.bz2 |
[InstCombine] usub.sat(a, b) + b => umax(a, b) (PR42178)
Fixes https://bugs.llvm.org/show_bug.cgi?id=42178 by folding
usub.sat(a, b) + b to umax(a, b). The backend will expand umax
back to usubsat if that is profitable.
We may also want to handle uadd.sat(a, b) - b in the future.
Differential Revision: https://reviews.llvm.org/D63060
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions