This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: llvm.amdgcn.writelane is a source of divergence
ClosedPublic

Authored by nhaehnle on Feb 11 2020, 5:42 AM.

Details

Summary

Consider:

%r = call i32 @llvm.amdgcn.writelane(i32 0, i32 1, i32 2)

This produces a value that is 0 on lane 1, and 2 everywhere else; i.e.,
it is divergent.

Reported-by: Marek Olsak <Marek.Olsak@amd.com>

Diff Detail

Event Timeline

nhaehnle created this revision.Feb 11 2020, 5:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 11 2020, 5:42 AM
foad accepted this revision.Feb 11 2020, 6:04 AM

LGTM.

This revision is now accepted and ready to land.Feb 11 2020, 6:04 AM
This revision was automatically updated to reflect the committed changes.