[llvm] [AMDGPU] Use native instructions for f16 to u16/i16 saturated conversion (PR #186769)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 17 03:36:11 PDT 2026
================
@@ -632,6 +632,53 @@ def : GCNPat<
>;
}
+// These i16 conversions naturally saturate.
----------------
jayfoad wrote:
Please use a multiclass to common up these three blocks of patterns. The only difference is that they use different opcodes. See e.g. `multiclass f16_fp_Pats` for an example.
https://github.com/llvm/llvm-project/pull/186769
More information about the llvm-commits
mailing list