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

Yaxun Liu via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 3 10:12:59 PDT 2024


================
@@ -2812,6 +2812,10 @@ MachineInstr *SIInstrInfo::commuteInstructionImpl(MachineInstr &MI, bool NewMI,
     swapSourceModifiers(MI, Src0, AMDGPU::OpName::src0_modifiers,
                         Src1, AMDGPU::OpName::src1_modifiers);
 
+    if (isSDWA(MI))
----------------
yxsamliu wrote:

will fix

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


More information about the llvm-commits mailing list