diff options
author | Artur Gainullin <artur.gainullin@intel.com> | 2018-05-15 10:24:12 +0000 |
---|---|---|
committer | Artur Gainullin <artur.gainullin@intel.com> | 2018-05-15 10:24:12 +0000 |
commit | 243a3d56d8726ecee55480f9faf6eaa2ec160004 (patch) | |
tree | 7c661a010ec53de1f612e98dd3c193d9720b7806 /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
parent | cfa6440b6c7611252eb3ad4d392507eb4630f333 (diff) | |
download | llvm-243a3d56d8726ecee55480f9faf6eaa2ec160004.zip llvm-243a3d56d8726ecee55480f9faf6eaa2ec160004.tar.gz llvm-243a3d56d8726ecee55480f9faf6eaa2ec160004.tar.bz2 |
[X86] Improve unsigned saturation downconvert detection.
Summary:
New unsigned saturation downconvert patterns detection was implemented in
X86 Codegen:
(truncate (smin (smax (x, C1), C2)) to dest_type),
where C1 >= 0 and C2 is unsigned max of destination type.
(truncate (smax (smin (x, C2), C1)) to dest_type)
where C1 >= 0, C2 is unsigned max of destination type and C1 <= C2.
These two patterns are equivalent to:
(truncate (umin (smax(x, C1), unsigned_max_of_dest_type)) to dest_type)
Reviewers: RKSimon
Subscribers: llvm-commits, a.elovikov
Differential Revision: https://reviews.llvm.org/D45315
llvm-svn: 332336
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
0 files changed, 0 insertions, 0 deletions