Skip to content

Commit c7cf2cc

Browse files
committed
[RISCV] Remove unneeded customization of bf16 bitcast. NFC
We custom legalize the bitcast using the i16 type not the bf16 type.
1 parent de6d7a6 commit c7cf2cc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
447447

448448
if (Subtarget.hasStdExtZfbfmin()) {
449449
setOperationAction(ISD::BITCAST, MVT::i16, Custom);
450-
setOperationAction(ISD::BITCAST, MVT::bf16, Custom);
451450
setOperationAction(ISD::ConstantFP, MVT::bf16, Expand);
452451
setOperationAction(ISD::SELECT_CC, MVT::bf16, Expand);
453452
setOperationAction(ISD::SELECT, MVT::bf16, Custom);

0 commit comments

Comments
 (0)