aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-11-05 15:06:37 -0800
committerGitHub <noreply@github.com>2024-11-05 15:06:37 -0800
commit13b5899c2904ba6b1f5223bf86679d046212da98 (patch)
treeeb3a2aaa12a4ef4052c5b338a1eae0c7adbea15e /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent5e75f294f1e2900e75f1f1e2cc4e5abe46366047 (diff)
downloadllvm-13b5899c2904ba6b1f5223bf86679d046212da98.zip
llvm-13b5899c2904ba6b1f5223bf86679d046212da98.tar.gz
llvm-13b5899c2904ba6b1f5223bf86679d046212da98.tar.bz2
[SelectionDAGBuilder][X86] Don't form FMAXNUM for f16 vectors if FMAXNUM needs to be promoted. (#114943)
In #70357, I changed a isLegalOrCustom to isLegalOrCustomOrPromote in visitSelect to enable integer min/max to be formed when the operation was promoted. Unfortunately, this also affected floating point. For floating point, fmaxnum may require a libcall so we also need to check if the operation on the promoted type is legal or custom. Other changes to RISC-V have seen made the original change untested so this patch restores the original isLegalOrCustom. Fixes #114520.
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions