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

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Oct 2 08:49:43 PDT 2024


  Branch: refs/heads/users/arsenm/amdgpu-si-fold-operands-frame-index-add
  Home:   https://github.com/llvm/llvm-project
  Commit: dcb75e4cffc07407875952b82aae73439bb16755
      https://github.com/llvm/llvm-project/commit/dcb75e4cffc07407875952b82aae73439bb16755
  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: b353b20114f49e9719a21d830fa5a696c66143e0
      https://github.com/llvm/llvm-project/commit/b353b20114f49e9719a21d830fa5a696c66143e0
  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/eafc80102c53...b353b20114f4

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