diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-13 00:12:30 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-14 19:59:33 +0200 |
commit | 8e69c3cde8eed94be226bdef1ff6cedda3a33bc4 (patch) | |
tree | 45209f8bb134f6372c02cbabbbf0a50529247b72 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a3bc0401d436d8c7d2dd5b54e13b81333d53bdff (diff) | |
download | llvm-8e69c3cde8eed94be226bdef1ff6cedda3a33bc4.zip llvm-8e69c3cde8eed94be226bdef1ff6cedda3a33bc4.tar.gz llvm-8e69c3cde8eed94be226bdef1ff6cedda3a33bc4.tar.bz2 |
[DAGCombiner] Fold fmin/fmax with INF / FLT_MAX
Similar to D87415, this folds the various float min/max opcodes
with a constant INF or -INF operand, or FLT_MAX / -FLT_MAX operand
if the ninf flag is set. Some of the folds are only possible under
nnan.
The fminnum(X, INF) with nnan and fmaxnum(X, -INF) with nnan cases
are needed to improve the VECREDUCE_FMIN/FMAX lowerings on X86,
the rest is here for the sake of completeness.
Differential Revision: https://reviews.llvm.org/D87571
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions