[llvm-branch-commits] [llvm] [AMDGPU] Use ds_append and ds_consume for unused LDS counter atomics (PR #234035)

Jay Foad via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 4 04:11:53 PST 2026


jayfoad wrote:

> > The idea seems OK but this could be implemented as an instruction selection pattern.
> 
> Thanks Jay. I did think about ISel, but this pass already turns a uniform unused `add 1` into the ballot + single lane `ds_add` form before ISel runs, so ISel would never see it.

OK, makes sense.

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


More information about the llvm-branch-commits mailing list