[all-commits] [llvm/llvm-project] 16fed3: [AMDGPU] Fix debug line table for MSG_DEALLOC_VGPR...

Emma Pilkington via All-commits all-commits at lists.llvm.org
Thu Apr 18 06:29:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16fed31f440ff7b194cb0f843e46339e28aa7982
      https://github.com/llvm/llvm-project/commit/16fed31f440ff7b194cb0f843e46339e28aa7982
  Author: Emma Pilkington <emma.pilkington95 at gmail.com>
  Date:   2024-04-18 (Thu, 18 Apr 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
    A llvm/test/CodeGen/AMDGPU/release-vgprs-dbg-loc.mir

  Log Message:
  -----------
  [AMDGPU] Fix debug line table for MSG_DEALLOC_VGPRS optimization (#88924)

Deallocating VGPRs interferes with doing a context save, which is needed for GDB
to report a breakpoint. So, in this sequence:

  s_sendmsg MSG_DEALLOC_VGPRS
  s_endpgm

We now use the debug location of the s_endpgm for the s_sendmsg, so a breakpoint
set in the debugger at the end of a shader will be hit before deallocating VGPRs.



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