[llvm] [SelectionDAG] Add `STRICT_BF16_TO_FP` and `STRICT_FP_TO_BF16` (PR #80056)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 1 07:17:18 PST 2024


================
@@ -393,7 +393,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
   }
 
   for (auto Op : {ISD::FP16_TO_FP, ISD::STRICT_FP16_TO_FP, ISD::FP_TO_FP16,
-                  ISD::STRICT_FP_TO_FP16}) {
+                  ISD::STRICT_FP_TO_FP16, ISD::STRICT_FP_TO_BF16}) {
----------------
shiltian wrote:

@phoebewang Do you mean here, we need to drop `Custom` for `Subtarget.hasF16C()` if `Op` is `ISD::STRICT_FP_TO_BF16`? If yes, I will take it out of the loop.

https://github.com/llvm/llvm-project/pull/80056


More information about the llvm-commits mailing list