[all-commits] [llvm/llvm-project] 061e36: [SelectionDAG] Implement soft FP legalisation for ...
Alex Bradbury via All-commits
all-commits at lists.llvm.org
Mon May 29 02:33:59 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 061e368fe213bd0701261a3e59f796c7439484fc
https://github.com/llvm/llvm-project/commit/061e368fe213bd0701261a3e59f796c7439484fc
Author: Alex Bradbury <asb at igalia.com>
Date: 2023-05-29 (Mon, 29 May 2023)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
M llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
A llvm/test/CodeGen/RISCV/bfloat.ll
Log Message:
-----------
[SelectionDAG] Implement soft FP legalisation for bf16 FP_EXTEND and BF16_TO_FP
As discussed in D151436, it's safe to do this as a simple shift (as is
done in LegalizeDAG.cpp) rather than needing a libcall. The added test
cases for RISC-V previously just triggered an assertion.
Codegen for bfloat_to_double will be slightly improved by D151434.
Differential Revision: https://reviews.llvm.org/D151563
More information about the All-commits
mailing list