[llvm] [AMDGPU] Fix SDWA commuting (PR #106920)
    Brian Favela via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Oct  2 09:48:43 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))
----------------
bfavela wrote:
It's not just SDWA - VOP3 instructions with OPSEL also use src0/1_sel
https://github.com/llvm/llvm-project/pull/106920
    
    
More information about the llvm-commits
mailing list