diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-06-29 14:28:54 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-06-29 14:28:54 +0000 |
commit | 77dc1e85683c585a08982af745f07647624eda1b (patch) | |
tree | 3ca036c1b1d586b3e5b116a95d7e761fc1c80a64 /lldb/packages/Python/lldbsuite/test/functionalities | |
parent | 61a8b62b4c961f25410fc126880befdf85424ea1 (diff) | |
download | bcm5719-llvm-77dc1e85683c585a08982af745f07647624eda1b.tar.gz bcm5719-llvm-77dc1e85683c585a08982af745f07647624eda1b.zip |
[InstCombine] canonicalize fmin/fmax to LLVM intrinsics minnum/maxnum
This transform came up in D62414, but we should deal with it first.
We have LLVM intrinsics that correspond exactly to libm calls (unlike
most libm calls, these libm calls never set errno).
This holds without any fast-math-flags, so we should always canonicalize
to those intrinsics directly for better optimization.
Currently, we convert to fcmp+select only when we have FMF (nnan) because
fcmp+select does not preserve the semantics of the call in the general case.
Differential Revision: https://reviews.llvm.org/D63214
llvm-svn: 364714
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities')
0 files changed, 0 insertions, 0 deletions