llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

llvm.amdgcn.inverse.ballot should not be convergent

Open nhaehnle opened this issue 3 years ago • 6 comments

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

nhaehnle avatar Jul 21 '23 18:07 nhaehnle

@llvm/issue-subscribers-backend-amdgpu

llvmbot avatar Jul 21 '23 18:07 llvmbot

Do we only need to remove the IntrConvergent from the intrinsic definition or is there more to it?

OutOfCache avatar Jul 21 '23 18:07 OutOfCache

Do we only need to remove the IntrConvergent from the intrinsic definition or is there more to it?

That should do it.

jdoerfert avatar Jul 21 '23 19:07 jdoerfert

There may be some tests that need updating, but yeah, everything else should be fine.

nhaehnle avatar Jul 21 '23 19:07 nhaehnle

I submitted a patch for review: https://reviews.llvm.org/D156088

OutOfCache avatar Jul 24 '23 08:07 OutOfCache

Patch was committed 93dc66a289b0136a468c55ac6590516ba3299375

arsenm avatar Aug 28 '23 18:08 arsenm