[llvm] [AMDGPU] Legalize strict fp_extend from bf16 (PR #215477)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 19 11:46:04 PDT 2026
================
@@ -600,6 +600,8 @@ SITargetLowering::SITargetLowering(const TargetMachine &TM,
// source bf16.
setOperationAction({ISD::FP_EXTEND, ISD::STRICT_FP_EXTEND}, MVT::f32, Custom);
setOperationAction({ISD::FP_EXTEND, ISD::STRICT_FP_EXTEND}, MVT::f64, Custom);
+ setOperationAction(ISD::STRICT_BF16_TO_FP, MVT::f32, Custom);
----------------
arsenm wrote:
Can you add this to whatever setOperationAction call handles the non-strict case
https://github.com/llvm/llvm-project/pull/215477
More information about the llvm-commits
mailing list