[all-commits] [llvm/llvm-project] a5c58a: AMDGPU/GlobalISel: Permit mapping G_FRAME_INDEX to...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Jul 31 05:34:28 PDT 2024


  Branch: refs/heads/users/arsenm/amdgpu-globalisel-map-frame-index-to-sgpr
  Home:   https://github.com/llvm/llvm-project
  Commit: a5c58a36846006e8d1d13e3c580a25571783b918
      https://github.com/llvm/llvm-project/commit/a5c58a36846006e8d1d13e3c580a25571783b918
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-07-31 (Wed, 31 Jul 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/crash-stack-address-O0.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/flat-scratch-init.gfx.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/flat-scratch.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/insertelement-stack-lower.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-frame-index.mir
    M llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll
    M llvm/test/CodeGen/AMDGPU/flat-scratch-svs.ll

  Log Message:
  -----------
  AMDGPU/GlobalISel: Permit mapping G_FRAME_INDEX to sgprs

eliminateFrameIndex should now properly handle materializing
frame indices in SGPRs, so treat this like the other constant
operand types.

On average this will produce worse code; we need to detect
VGPR uses, and improve SGPR->VGPR frame index folds.



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