[llvm] [AMDGPU] Add function attribute amdgpu-use-amdgpu-trackers (PR #223071)

Dhruva Chakrabarti via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 17:05:23 PDT 2026


dhruvachak wrote:

> I don't think this should be something controlled by a function attribute. I think this is an abuse of function attribute.

At this point, the AMDGPU trackers are disabled by default. They can be turned ON using a command-line option. But often some kernels improve, some kernels regress with this option. The intent of this function attribute is for the user to control this option at a finer granularity.

There is ongoing work to address the performance issues (e.g. https://github.com/llvm/llvm-project/pull/184275, https://github.com/llvm/llvm-project/pull/210547). If the option can be enabled by default, we may be able to remove the function-level attribute later.

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


More information about the llvm-commits mailing list