]> granicus.if.org Git - llvm/commit
AMDGPU: Move v_readlane lane select from VGPR to SGPR
authorNicolai Haehnle <nhaehnle@gmail.com>
Mon, 24 Apr 2017 17:17:36 +0000 (17:17 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Mon, 24 Apr 2017 17:17:36 +0000 (17:17 +0000)
commitc3187b408ef807b3d7c8cced77be860596850afd
treeb9c5fe254c4724671b8e0ff98d7da0e21a976266
parentfa273182f487c6f457589da730efced2a5922dcc
AMDGPU: Move v_readlane lane select from VGPR to SGPR

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
the corresponding GLSL: the lane select must be uniform across a
wave front, otherwise results are undefined.

Reviewers: arsenm

Subscribers: kzhuravl, wdng, yaxunl, dstuttard, tpr, t-tye, llvm-commits

Differential Revision: https://reviews.llvm.org/D32343

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301197 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsAMDGPU.td
lib/Target/AMDGPU/SIInstrInfo.cpp
test/CodeGen/AMDGPU/llvm.amdgcn.readlane.ll