llvm.amdgcn.inverse.ballot should not be convergent
We missed this when we added the intrinsic. llvm.amdgcn.inverse.ballot is semantically really just ((arg >> lane_id) & 1) != 0, so there is cross-lane communication.
cc @arsenm @jayfoad @OutOfCache @sameerds
@llvm/issue-subscribers-backend-amdgpu
Do we only need to remove the IntrConvergent from the intrinsic definition or is there more to it?
Do we only need to remove the
IntrConvergentfrom the intrinsic definition or is there more to it?
That should do it.
There may be some tests that need updating, but yeah, everything else should be fine.
I submitted a patch for review: https://reviews.llvm.org/D156088
Patch was committed 93dc66a289b0136a468c55ac6590516ba3299375