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

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 25 02:34:31 PDT 2025


jayfoad wrote:

> This is only used by SIInsertWaitCnt

It was also used in SIMemoryLegalizer but I see you removed that in #157640. Prior to that, mayAccessScratchThroughFlat lived in SIInsertWaitcnts.cpp.

For the use in SIInsertWaitcnts I think we only care about accesses to _this wave's_ scratch, so I'm not sure any code change is needed here?



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


More information about the llvm-commits mailing list