[llvm] [AMDGPU] Cgscc amdgpu attributor (PR #179719)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 7 07:28:11 PST 2026


shiltian wrote:

> > Some AMDGPU attributes are implemented with assumption that it can see all callsites (not necessarily a closed-world but similar at least based on the programming model we support), especially for those to propagate from leaves to kernels, which is not the case for CGSCC.
> 
> You mean the other way around? It's the kernels -> callees that depends on seeing the whole module

Even some callees -> kernels require that. For example, whether a kernel uses Y or Z dimension workgroups is an information gets propagated from leaves to kernel.

> The set of attributes should be split up into cgscc and module variants. However, it may be more convenient to do that in a follow up patch that adds cgscc to the default pipeline

That is a correctness issue, so it should not be done in a follow-up.

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


More information about the llvm-commits mailing list