[llvm] [AMDGPU] Set glc bit for nontemporal loads on GFX10/11 (PR #89739)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 23 05:29:30 PDT 2024


jayfoad wrote:

I have found some relevant history in @perlfu's [D114351](https://reviews.llvm.org/D114351) which added the code to set glc for nontemporal stores but not loads. Relevant [comment](https://reviews.llvm.org/D114351#inline-1091553) from @t-tye:

> It appears that this should be setting GLC=1 for stores so that L0 will be HIT_EVICT instead of MISS_EVICT. This must not be done for loads as that would make Lo MISS_EVICT.

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


More information about the llvm-commits mailing list