[PATCH] D102401: [AMDGPU] Allocate LDS globals in sorted order of their alignment and size.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 17 10:04:37 PDT 2021
arsenm added a comment.
In D102401#2763869 <https://reviews.llvm.org/D102401#2763869>, @hsmhsm wrote:
> (1) infer and fix LDS alignment
> (2) update the align attribute of LDS globals and LDS memory operations based on above (1)
>
> But, sorting of per kernel used LDS globals can be achieved only in codegen pass as did in this patch. The reason for this is - I do not see any neat way to pass some analysis result which is built in IR pass on top of IR to codegen pass.
If you rewrite all the accesses relative to a single LDS global, there's nothing for codegen to sort.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102401/new/
https://reviews.llvm.org/D102401
More information about the llvm-commits
mailing list