[all-commits] [llvm/llvm-project] 1f0aad: [AMDGPU] Fix kill flag on overlapping sgpr copy

Sebastian Neubauer via All-commits all-commits at lists.llvm.org
Fri Feb 18 05:36:32 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f0aadfa62a56ca5a71bec0911538fe360bfc28d
      https://github.com/llvm/llvm-project/commit/1f0aadfa62a56ca5a71bec0911538fe360bfc28d
  Author: Sebastian Neubauer <Sebastian.Neubauer at amd.com>
  Date:   2022-02-18 (Fri, 18 Feb 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    A llvm/test/CodeGen/AMDGPU/copy-overlap-sgpr-kill.mir

  Log Message:
  -----------
  [AMDGPU] Fix kill flag on overlapping sgpr copy

Same as on vgpr copies, we cannot kill the source register if it
overlaps with the destination register. Otherwise, the kill of the
source register will also count as a kill for the destination register.

Differential Revision: https://reviews.llvm.org/D120042




More information about the All-commits mailing list