[llvm] [AMDGPU] Use wavefront scope for single-wave workgroup synchronization (PR #187673)

Sameer Sahasrabuddhe via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 04:54:57 PDT 2026


ssahasra wrote:

> > I don't think it's a good idea. For example, when a system and agent fence have the same code sequence, we don't reduce system fences to agent. We also don't demote wavefront fences to singlethread because it's the same. We also don't promote cluster to agent in the IR when targets don't support clusters.
> 
> We could do all of these things. It's not about the final code sequence. A single wave group is really the same as a wave

I agree. Doing this as an IR transformation is correct and makes a very strong statement.

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


More information about the llvm-commits mailing list