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

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


  Branch: refs/heads/users/arsenm/local-stack-slot-alloc-v-add-support
  Home:   https://github.com/llvm/llvm-project
  Commit: d34f207d93e13485f73aa205d429e60faed95779
      https://github.com/llvm/llvm-project/commit/d34f207d93e13485f73aa205d429e60faed95779
  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