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

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Oct 3 12:35:59 PDT 2024


  Branch: refs/heads/users/arsenm/amdgpu-si-fold-operands-frame-index-add
  Home:   https://github.com/llvm/llvm-project
  Commit: f01ab1a3616f40bfa8dcd9a62e40430d822346e0
      https://github.com/llvm/llvm-project/commit/f01ab1a3616f40bfa8dcd9a62e40430d822346e0
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-10-03 (Thu, 03 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-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:
  -----------
  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.



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