[all-commits] [llvm/llvm-project] 7ab482: AMDGPU: Support VALU add instructions in localstac...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Aug 5 10:37:17 PDT 2024


  Branch: refs/heads/users/arsenm/local-stack-slot-alloc-v-add-support
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ab4822d2edf5526f0c4d1cac064c827b94ce283
      https://github.com/llvm/llvm-project/commit/7ab4822d2edf5526f0c4d1cac064c827b94ce283
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-08-05 (Mon, 05 Aug 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
    M llvm/lib/Target/AMDGPU/SOPInstructions.td
    M llvm/lib/Target/AMDGPU/VOP2Instructions.td
    A llvm/test/CodeGen/AMDGPU/local-stack-alloc-add-references.gfx10.mir
    A llvm/test/CodeGen/AMDGPU/local-stack-alloc-add-references.gfx8.mir
    A llvm/test/CodeGen/AMDGPU/local-stack-alloc-add-references.gfx9.mir

  Log Message:
  -----------
  AMDGPU: Support VALU add instructions in localstackalloc

Pre-enable this optimization before allowing folds of frame
indexes into add instructions. Disables this fold when using
scratch instructions for now. I see some code size improvements
with it, but the optimization needs to be smarter about the
uses depending on the register classes.



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