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>
Paths
| Differential D74400
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., Reported-by: Marek Olsak <Marek.Olsak@amd.com>
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 11 2020, 6:04 AM Closed by commit rGab2f610f3855: AMDGPU: llvm.amdgcn.writelane is a source of divergence (authored by nhaehnle). · Explain WhyFeb 12 2020, 12:16 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 244081 llvm/lib/Target/AMDGPU/AMDGPUSearchableTables.td
llvm/test/Analysis/DivergenceAnalysis/AMDGPU/intrinsics.ll
|