diff options
author | Craig Topper <craig.topper@sifive.com> | 2024-11-05 15:06:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 15:06:37 -0800 |
commit | 13b5899c2904ba6b1f5223bf86679d046212da98 (patch) | |
tree | eb3a2aaa12a4ef4052c5b338a1eae0c7adbea15e /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 5e75f294f1e2900e75f1f1e2cc4e5abe46366047 (diff) | |
download | llvm-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