[llvm] 02a0b11 - AMDGPU: Remove weird usage of implicit operand on COPY

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 16:16:18 PDT 2023


Author: Matt Arsenault
Date: 2023-07-31T19:16:11-04:00
New Revision: 02a0b113319694e5f5f06d592577565127a894bb

URL: https://github.com/llvm/llvm-project/commit/02a0b113319694e5f5f06d592577565127a894bb
DIFF: https://github.com/llvm/llvm-project/commit/02a0b113319694e5f5f06d592577565127a894bb.diff

LOG: AMDGPU: Remove weird usage of implicit operand on COPY

For the purpose of the test it works as well to have a use after the
copy itself.

Added: 
    

Modified: 
    llvm/test/CodeGen/AMDGPU/coalescer-remat-dead-use.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AMDGPU/coalescer-remat-dead-use.mir b/llvm/test/CodeGen/AMDGPU/coalescer-remat-dead-use.mir
index fe8fd03bf2a069..86e85e92ee625e 100644
--- a/llvm/test/CodeGen/AMDGPU/coalescer-remat-dead-use.mir
+++ b/llvm/test/CodeGen/AMDGPU/coalescer-remat-dead-use.mir
@@ -93,6 +93,6 @@ body:             |
     %0:vgpr_32 = COPY $vgpr0
     %1:vgpr_32 = V_ADD_U32_e32 1, %0, implicit $exec
     %2:vgpr_32 = V_MOV_B32_e32 %1, implicit $exec
-    $vgpr0 = COPY killed %2, implicit %1
-    SI_RETURN_TO_EPILOG killed $vgpr0
+    $vgpr0 = COPY killed %2
+    SI_RETURN_TO_EPILOG killed $vgpr0, implicit %1
 ...


        


More information about the llvm-commits mailing list