[llvm] [AMDGPU] Don't cluster lds instrs together (PR #180908)
Kevin Choi via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 16 12:51:26 PST 2026
choikwa wrote:
> However, for GPUs, there are no architectural benefits in doing so [back-to-back memory ops] for lds/shared-memory accesses.
This seems at odds with some architecture docs I've read.
Quoting myself from https://github.com/llvm/llvm-project/pull/140674
"Shader Programming Guide section 3.1.8 on "Soft" Memory Clause also notes that back-to-back requests are much more efficient for the cache."
I'm also trying to look at the Triton matmul kernel and I believe the goal is to spread out DS_READs that feed MFMAs with sufficient delay to keep both MemUnit and CU busy. I'm not sure if Memory clustering logic is necessarily to blame here, but I can see how it can be a hurdle if scheduler decides more optimal schedule is to uncluster them.
https://github.com/llvm/llvm-project/pull/180908
More information about the llvm-commits
mailing list