[all-commits] [llvm/llvm-project] 295561: AMDGPU: Handle folding frame indexes into add with...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Oct 1 22:25:15 PDT 2024


  Branch: refs/heads/users/arsenm/amdgpu-si-fold-operands-frame-index-add
  Home:   https://github.com/llvm/llvm-project
  Commit: 295561a4936e932aa41fe7d80ec2aafb94f49a8e
      https://github.com/llvm/llvm-project/commit/295561a4936e932aa41fe7d80ec2aafb94f49a8e
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-10-02 (Wed, 02 Oct 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/test/CodeGen/AMDGPU/flat-scratch.ll
    M llvm/test/CodeGen/AMDGPU/fold-operands-frame-index.gfx10.mir
    M llvm/test/CodeGen/AMDGPU/fold-operands-frame-index.mir
    M llvm/test/CodeGen/AMDGPU/materialize-frame-index-sgpr.gfx10.ll
    M llvm/test/CodeGen/AMDGPU/materialize-frame-index-sgpr.ll

  Log Message:
  -----------
  AMDGPU: Handle folding frame indexes into add with immediate

Frame index materialization can fold the constant offset into
adds with immediates. The mubuf expansion is more complicated because
we have to also insert the shift, so restrict this to one use for now.
This is preparation to avoid regressions in a future patch.

This also misses some cases due to visitation order. It depends on
the immediate already folding into the instruction.


  Commit: 2e3e3c16833fecab21e9dbc8ad88cf089139d484
      https://github.com/llvm/llvm-project/commit/2e3e3c16833fecab21e9dbc8ad88cf089139d484
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-10-02 (Wed, 02 Oct 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/test/CodeGen/AMDGPU/fold-fi-operand-shrink.mir
    M llvm/test/CodeGen/AMDGPU/fold-operands-frame-index.gfx10.mir
    M llvm/test/CodeGen/AMDGPU/fold-operands-frame-index.mir
    M llvm/test/CodeGen/AMDGPU/frame-index-elimination.ll
    M llvm/test/CodeGen/AMDGPU/materialize-frame-index-sgpr.gfx10.ll
    M llvm/test/CodeGen/AMDGPU/materialize-frame-index-sgpr.ll

  Log Message:
  -----------
  Handle vop3 cases


Compare: https://github.com/llvm/llvm-project/compare/fccd15f8530a...2e3e3c16833f

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list