[llvm] [AMDGPU] Fix SDWA commuting (PR #106920)

Yaxun Liu via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 12:53:08 PDT 2024


================
@@ -0,0 +1,17 @@
+# RUN: llc -mtriple=amdgcn -mcpu=gfx1030 -run-pass=machine-cse -verify-machineinstrs %s -o - 2>&1 | FileCheck --check-prefix=GCN %s
+
+# GCN-LABEL: name: test_machine_cse_op_sel
+# GCN: %2:vgpr_32 = V_ADD_NC_U16_e64 0, %0, 0, %1, 1, 0, implicit $mode, implicit $exec
+# GCN: %3:vgpr_32 = V_ADD_NC_U16_e64 0, %1, 0, %0, 1, 0, implicit $mode, implicit $exec
----------------
yxsamliu wrote:

OK I just noticed you have approved this PR. I will commit it first and will look into VOP3 commuting opportunity later.

https://github.com/llvm/llvm-project/pull/106920


More information about the llvm-commits mailing list