[llvm] [AMDGPU] remove move instruction if there is no user of it (PR #136735)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon May  5 11:28:05 PDT 2025
    
    
  
================
@@ -797,7 +797,7 @@ MachineInstr *SIShrinkInstructions::matchSwap(MachineInstr &MovT) const {
     dropInstructionKeepingImpDefs(*MovY);
     MachineInstr *Next = &*std::next(MovT.getIterator());
 
-    if (T.isVirtual() && MRI->use_nodbg_empty(T)) {
+    if (MRI->use_nodbg_empty(T)) {
----------------
BaoshanPang wrote:
@mariusz-sikora-at-amd  Can you attach a complete test case here so I can check it? Thanks
https://github.com/llvm/llvm-project/pull/136735
    
    
More information about the llvm-commits
mailing list