[llvm] [X86] Lower bf16->f32/f64 fpext without a GPR round-trip (PR #218359)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 07:06:02 PDT 2026


================
@@ -697,6 +697,8 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
     setOperationAction(ISD::FP_ROUND, MVT::f16, Custom);
     setOperationAction(ISD::FP_EXTEND, MVT::f32, Custom);
     setOperationAction(ISD::FP_EXTEND, MVT::f64, Custom);
+    setOperationAction(ISD::BF16_TO_FP, MVT::f32, Custom);
+    setOperationAction(ISD::BF16_TO_FP, MVT::f64, Custom);
----------------
phoebewang wrote:

Why move them to F16 handling code?

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


More information about the llvm-commits mailing list