Fix a compiler bug when the lane select happens to end up in a VGPR.
Clarify the semantic of the corresponding intrinsic to be that of
the corresponding GLSL: the lane select must be uniform across a
wave front, otherwise results are undefined.
Paths
| Differential D32343
AMDGPU: Move v_readlane lane select from VGPR to SGPR ClosedPublic Authored by nhaehnle on Apr 21 2017, 2:21 AM.
Details Summary Fix a compiler bug when the lane select happens to end up in a VGPR. Clarify the semantic of the corresponding intrinsic to be that of
Diff Detail
Event TimelineHerald added subscribers: t-tye, tpr, dstuttard and 3 others. · View Herald TranscriptApr 21 2017, 2:21 AM This revision is now accepted and ready to land.Apr 24 2017, 10:27 AM Closed by commit rL301197: AMDGPU: Move v_readlane lane select from VGPR to SGPR (authored by nha). · Explain WhyApr 24 2017, 10:30 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 96412 include/llvm/IR/IntrinsicsAMDGPU.td
lib/Target/AMDGPU/SIInstrInfo.cpp
test/CodeGen/AMDGPU/llvm.amdgcn.readlane.ll
|
Also mention the source is assumed to be uniform?