[llvm] c7cf2cc - [RISCV] Remove unneeded customization of bf16 bitcast. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 22:57:53 PDT 2024
Author: Craig Topper
Date: 2024-09-11T22:42:27-07:00
New Revision: c7cf2cc59e402cfeaece5f58c70cfdda72a1be99
URL: https://github.com/llvm/llvm-project/commit/c7cf2cc59e402cfeaece5f58c70cfdda72a1be99
DIFF: https://github.com/llvm/llvm-project/commit/c7cf2cc59e402cfeaece5f58c70cfdda72a1be99.diff
LOG: [RISCV] Remove unneeded customization of bf16 bitcast. NFC
We custom legalize the bitcast using the i16 type not the bf16 type.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 5e1d47dc49ddb5..b0d79f4367e837 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -447,7 +447,6 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
if (Subtarget.hasStdExtZfbfmin()) {
setOperationAction(ISD::BITCAST, MVT::i16, Custom);
- setOperationAction(ISD::BITCAST, MVT::bf16, Custom);
setOperationAction(ISD::ConstantFP, MVT::bf16, Expand);
setOperationAction(ISD::SELECT_CC, MVT::bf16, Expand);
setOperationAction(ISD::SELECT, MVT::bf16, Custom);
More information about the llvm-commits
mailing list