diff options
author | Craig Topper <craig.topper@sifive.com> | 2020-11-05 10:07:03 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2020-11-05 10:46:45 -0800 |
commit | ce5f4f22e9eff7edf4cbd22f69bebe8cc58251fd (patch) | |
tree | 6d00433497f240bd7d6c77462120e2a5bdf63e2a /llvm/unittests/Support/CommandLineTest.cpp | |
parent | f738aee0bbf39d11b9f0104e094c7893ffca040c (diff) | |
download | llvm-ce5f4f22e9eff7edf4cbd22f69bebe8cc58251fd.zip llvm-ce5f4f22e9eff7edf4cbd22f69bebe8cc58251fd.tar.gz llvm-ce5f4f22e9eff7edf4cbd22f69bebe8cc58251fd.tar.bz2 |
[RISCV] Use the 'si' lib call for (double (fp_to_sint/uint i32 X)) when F extension is enabled.
D80526 added custom lowering to pick the si lib call on RV64, but this custom handling is only enabled when the F and D extension are both disabled. This prevents the si library call from being used for double when F is enabled but D is not.
This patch changes the behavior so we always enable the Custom hook on RV64 and decide in ReplaceNodeResults if we should emit a libcall based on whether the FP type should be softened or not.
Differential Revision: https://reviews.llvm.org/D90817
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions