This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] - Mark inverse.ballot as not convergent
ClosedPublic

Authored by OutOfCache on Jul 24 2023, 1:06 AM.

Details

Summary

inverse.ballot checks if a cc bit is set for the current
lane. Therefore, it is not convergent.

Diff Detail

Event Timeline

OutOfCache created this revision.Jul 24 2023, 1:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2023, 1:06 AM
OutOfCache requested review of this revision.Jul 24 2023, 1:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2023, 1:06 AM

The change description and other places should say "inverse.ballot is not convergent". The keyword "divergent" is the opposite of "uniform". The opposite of convergent is simply "not convergent".

llvm/include/llvm/IR/IntrinsicsAMDGPU.td
1954

This is updating the wrong intrinsic. readlane is definitely convergent.

foad added a subscriber: foad.Jul 24 2023, 1:20 AM

Mark inverse.ballot as divergent

I would say "not convergent". "divergent" is the opposite of "uniform". I don't think we use it to mean the opposite of "convergent", do we?

llvm/include/llvm/IR/IntrinsicsAMDGPU.td
1954

You've changed the wrong intrinsic.

Modifying the correct intrinsic

OutOfCache retitled this revision from [AMDGPU] - Mark inverse.ballot as divergent to [AMDGPU] - Mark inverse.ballot as not convergent.Jul 24 2023, 8:29 AM
OutOfCache edited the summary of this revision. (Show Details)

Surprising that this didn't affect any lit test. If there are no tests, then they need to be added.

OutOfCache marked 2 inline comments as done.Jul 24 2023, 8:43 AM

Surprising that this didn't affect any lit test. If there are no tests, then they need to be added.

I believe we don't have a dedicated test-this-is-convergent test for all the intrinsics anywhere

sameerds accepted this revision.Jul 24 2023, 8:59 PM
This revision is now accepted and ready to land.Jul 24 2023, 8:59 PM
This revision was automatically updated to reflect the committed changes.