[all-commits] [llvm/llvm-project] 9145d7: AMDGPU: Fix incorrectly deleting copies after spil...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Aug 28 14:50:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9145d75226a071c530d14e051008e4c32e87cf5e
      https://github.com/llvm/llvm-project/commit/9145d75226a071c530d14e051008e4c32e87cf5e
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-08-28 (Fri, 28 Aug 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
    A llvm/test/CodeGen/AMDGPU/spill-reg-tuple-super-reg-use.mir
    M llvm/test/CodeGen/AMDGPU/spill192.mir

  Log Message:
  -----------
  AMDGPU: Fix incorrectly deleting copies after spilling SGPR tuples

The implicit def of the super register would appear to kill any live
uses of components before the spill, and would be deleted by
MachineCopyPropagation. We need to add implicit uses of the super
register, similarly to what copyPhysReg does. VGPR tuples appear to be
correctly handled already. I need to double check the SGPR->memory
path.




More information about the All-commits mailing list