[all-commits] [llvm/llvm-project] aba1f1: [AMDGPU] Precommit vgpr-liverange tests

Sebastian Neubauer via All-commits all-commits at lists.llvm.org
Wed Jul 21 06:25:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aba1f157ca4fb8ddd7295368a644a366853fb57a
      https://github.com/llvm/llvm-project/commit/aba1f157ca4fb8ddd7295368a644a366853fb57a
  Author: Sebastian Neubauer <sebastian.neubauer at amd.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M llvm/test/CodeGen/AMDGPU/vgpr-liverange-ir.ll
    M llvm/test/CodeGen/AMDGPU/vgpr-liverange.ll

  Log Message:
  -----------
  [AMDGPU] Precommit vgpr-liverange tests


  Commit: b642d01fa85e460158903dd080839f29ed00aa1d
      https://github.com/llvm/llvm-project/commit/b642d01fa85e460158903dd080839f29ed00aa1d
  Author: Sebastian Neubauer <sebastian.neubauer at amd.com>
  Date:   2021-07-21 (Wed, 21 Jul 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i64.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i64.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/udiv.i64.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i64.ll
    M llvm/test/CodeGen/AMDGPU/bypass-div.ll
    M llvm/test/CodeGen/AMDGPU/vgpr-liverange-ir.ll
    M llvm/test/CodeGen/AMDGPU/vgpr-liverange.ll

  Log Message:
  -----------
  [AMDGPU] Improve killed check for vgpr optimization

The killed flag is not always set. E.g. when a variable is used in a
loop, it is never marked as killed, although it is unused in following
basic blocks. Also, we try to deprecate kill flags and not use them.

Check if the register is live in the endif block. If not, consider it
killed in the then and else blocks.

The vgpr-liverange tests have two new tests with loops
(pre-committed, so the diff is visible).
I also needed to change the subtarget to gfx10.1, otherwise calls
are not working.

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


Compare: https://github.com/llvm/llvm-project/compare/f49f2e2d1f8d...b642d01fa85e


More information about the All-commits mailing list