[all-commits] [llvm/llvm-project] 6a3e1b: AMDGPU/GlobalISel: Add test for buffer_load with n...

petar-avramovic via All-commits all-commits at lists.llvm.org
Tue Apr 27 05:47:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a3e1b3531c08db59e2864b3c46a2e4303505f8e
      https://github.com/llvm/llvm-project/commit/6a3e1b3531c08db59e2864b3c46a2e4303505f8e
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

  Changed paths:
    M llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.s.buffer.load.mir

  Log Message:
  -----------
  AMDGPU/GlobalISel: Add test for buffer_load with negative offset

Pre-commit test for D91336.


  Commit: 8110fcc8fc56cb5d2fc0cbab882ddfdae2536201
      https://github.com/llvm/llvm-project/commit/8110fcc8fc56cb5d2fc0cbab882ddfdae2536201
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.s.buffer.load.mir

  Log Message:
  -----------
  AMDGPU/GlobalISel: Fix negative offset folding for buffer_load

Buffer_load does unsigned offset calculations. Don't fold
operands of 32-bit add that are likely to cause unsigned add
overflow (common case is when one of the operands is negative).

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


Compare: https://github.com/llvm/llvm-project/compare/cb96d802d4d7...8110fcc8fc56


More information about the All-commits mailing list