[llvm] select v_sat_pk from 2 i16 (PR #121124)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 25 19:47:10 PST 2024
================
@@ -315,6 +315,20 @@ def srl_16 : PatFrag<
(ops node:$src0), (srl_oneuse node:$src0, (i32 16))
>;
+def clamp_s16_u8 : PatFrag<
+ (ops node:$src),
+ (i16 (AMDGPUsmed3 $src, (i16 0), (i16 255)))
+>;
+
+def conc_lo_u8_i16 : PatFrags<
----------------
arsenm wrote:
This is just one Pat, Can use PatFrag not PatFrags and avoid the list
https://github.com/llvm/llvm-project/pull/121124
More information about the llvm-commits
mailing list