[llvm] [AMDGPU] Use `v_cvt_pk_*` instructions for i16_f32 saturated conversions (PR #202680)
Igor Wodiany via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 09:30:57 PDT 2026
================
@@ -3949,6 +3949,10 @@ SDValue AMDGPUTargetLowering::LowerFP_TO_INT_SAT(const SDValue Op,
if (DstVT == MVT::i16 && SatWidth == DstWidth && SrcVT == MVT::f16)
return Op;
+ if (Subtarget->hasGFX11Insts() && DstVT == MVT::i16 && SrcVT == MVT::f32 &&
----------------
IgWod wrote:
I have removed the check and hoisted related fallback patterns from the GFX11+ guard.
https://github.com/llvm/llvm-project/pull/202680
More information about the llvm-commits
mailing list