This results in improved codegen for half/bf16 libcalls on soft ABIs
Adds a RISCVSubtarget helper method for determining if a soft FP ABI is being targeted (future bf16 related patches make use of this).
Paths
| Differential D151434
[RISCV] Generalise shouldExtendTypeInLibcall logic to apply to all <XLEN floats on soft ABIs ClosedPublic Authored by asb on May 25 2023, 5:39 AM.
Details Summary This results in improved codegen for half/bf16 libcalls on soft ABIs Adds a RISCVSubtarget helper method for determining if a soft FP ABI is being targeted (future bf16 related patches make use of this).
Diff Detail Event Timelineasb removed a child revision: D151563: [SelectionDAG] Implement soft FP legalisation for bf16 FP_EXTEND and BF16_TO_FP.May 29 2023, 10:08 AM asb added a child revision: D151663: [RISCV] Implement support for bf16 truncate/extend on hard FP targets.May 29 2023, 1:39 PM This revision is now accepted and ready to land.May 29 2023, 7:08 PM Closed by commit rGc4efcd6970e2: [RISCV] Generalise shouldExtendTypeInLibcall logic to apply to all <XLEN floats… (authored by asb). · Explain WhyMay 30 2023, 3:04 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 526453 llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVSubtarget.h
llvm/test/CodeGen/RISCV/bfloat.ll
llvm/test/CodeGen/RISCV/half-convert.ll
|