[llvm] [AMDGPU] selecting v_sat_pk instruction, version 2 (PR #123297)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 00:46:41 PST 2025
================
@@ -3309,6 +3309,21 @@ 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 : GCNPat<
----------------
arsenm wrote:
This pattern isn't doing much, you should be able to pass the node to the SDNodeOperator argument to the instruction definition
https://github.com/llvm/llvm-project/pull/123297
More information about the llvm-commits
mailing list