[llvm] [AMDGPU][gfx1250] Check for GloballyAddressableScratch in mayAccessScratchThroughFlat (PR #160669)

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 25 05:24:05 PDT 2025


Pierre-vh wrote:

> To explain a bit more: in normal wave termination, the hw waits for outstanding stores to complete, and then releases the wave's VGPRs and scratch. If you send MSG_DEALLOC_VGPRS before the end of the shader, then VGPRs _and scratch_ will be released before the hw waits for outstanding stores to complete. If there were any outstanding stores to this wave's scratch then that will cause a problem.

Ah that makes sense, then indeed no code change is needed here.

https://github.com/llvm/llvm-project/pull/160669


More information about the llvm-commits mailing list