[llvm] [AMDGPU] Implement llvm.fptosi.sat and llvm.fptoui.sat (PR #174726)
Carl Ritson via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 12 20:31:11 PST 2026
================
@@ -3762,6 +3767,52 @@ SDValue AMDGPUTargetLowering::LowerFP_TO_INT(const SDValue Op,
return SDValue();
}
+SDValue AMDGPUTargetLowering::LowerFP_TO_INT_SAT(const SDValue Op,
----------------
perlfu wrote:
I don't think this belongs in the generic legalizer.
Each target that implements the saturated conversions has their own logic already.
AMDGPU logic is subtly different again from other targets (X86, AArch, etc).
https://github.com/llvm/llvm-project/pull/174726
More information about the llvm-commits
mailing list