This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/clang: Remove dead code
ClosedPublic

Authored by arsenm on Aug 4 2022, 10:40 AM.

Details

Summary

The order has to be a constant and should be enforced by the builtin
definition. The fallthrough behavior would have been broken anyway.

There's still an existing issue/assert if you try to use garbage for the
ordering. The IRGen should be broken, but we also hit another assert
before that.

Fixes issue 56832

Diff Detail

Event Timeline

arsenm created this revision.Aug 4 2022, 10:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 4 2022, 10:40 AM
Herald added subscribers: kosarev, t-tye, tpr and 2 others. · View Herald Transcript
arsenm requested review of this revision.Aug 4 2022, 10:40 AM
yaxunl accepted this revision.Aug 4 2022, 12:06 PM

LGTM. Thanks.

The scope arg to the builtin is a string. I doubt non-constant scope arg will ever get supported.

This revision is now accepted and ready to land.Aug 4 2022, 12:06 PM