]> granicus.if.org Git - clang/commit
[X86][SSE] Auto upgrade PADDUS/PSUBUS intrinsics to UADD_SAT/USUB_SAT generic intrins...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 19 Dec 2018 14:43:47 +0000 (14:43 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 19 Dec 2018 14:43:47 +0000 (14:43 +0000)
commit2d4a825aa47df7c19caabef365c2ca0c1f3903f7
treeabd58a6508b63048cd87853ce7928c9d4052c872
parentc2b4b6e12fab0e96e4aecb21ba1e63ce9bce5e94
[X86][SSE] Auto upgrade PADDUS/PSUBUS intrinsics to UADD_SAT/USUB_SAT generic intrinsics (clang)

Sibling patch to D55855, this emits UADD_SAT/USUB_SAT generic intrinsics for the SSE saturated math intrinsics instead of expanding to a IR code sequence that could be difficult to reassemble.

Differential Revision: https://reviews.llvm.org/D55879

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349631 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/avx2-builtins.c
test/CodeGen/avx512bw-builtins.c
test/CodeGen/avx512vlbw-builtins.c
test/CodeGen/sse2-builtins.c