[llvm] [AMDGPU] select v_sat_pk from two i16 or v2i16 (PR #121124)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 01:09:13 PST 2025
================
@@ -3298,6 +3301,32 @@ def : GCNPat <
(v2i16 (V_LSHL_OR_B32_e64 $src1, (i32 16), (i32 (V_AND_B32_e64 (i32 (V_MOV_B32_e32 (i32 0xffff))), $src0))))
>;
+multiclass V_SAT_PK_Pat<Instruction inst> {
+ def: GCNPatIgnoreCopies<
----------------
arsenm wrote:
Do not use GCNPatIgnoreCopies. Anything related to the globalisel handling should be done separately
https://github.com/llvm/llvm-project/pull/121124
More information about the llvm-commits
mailing list