[PATCH] D151341: AMDGPU: Special case uniformity info for singlethreaded workitem IDs

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 12:30:23 PDT 2023


arsenm added a comment.

In D151341#4368708 <https://reviews.llvm.org/D151341#4368708>, @jhuber6 wrote:

> In D151341#4368704 <https://reviews.llvm.org/D151341#4368704>, @arsenm wrote:
>
>> Ballots are forcibly uniform all the time. I guess this works for every operation and don't actually need to look for specific intrinsics
>
> We should be able to remove every `convergent` attribute under this special case, right.

Maybe, in the future with convergence tokens we should have a convergence reduction optimization.

I'm thinking a cleaner way to handle this would be to just have the divergence analysis early exit for single lane functions. Divergence cannot exist in the first place


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151341/new/

https://reviews.llvm.org/D151341



More information about the llvm-commits mailing list