]> granicus.if.org Git - llvm/commit
Merging r260599:
authorTom Stellard <thomas.stellard@amd.com>
Fri, 3 Jun 2016 09:50:12 +0000 (09:50 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 3 Jun 2016 09:50:12 +0000 (09:50 +0000)
commitd1c65e8935d9f29b17c5c3b350aa2a9cb7b8388f
treea3490c615cee1df55ca03e2a4245f414a3a77bba
parentab4b667eea9f1d708b577bde4ca4f70409de1de5
Merging r260599:

------------------------------------------------------------------------
r260599 | thomas.stellard | 2016-02-11 13:45:07 -0800 (Thu, 11 Feb 2016) | 14 lines

AMDGPU/SI: Make sure MIMG descriptors and samplers stay in SGPRs

Summary:
It's possible to have resource descriptors and samplers stored in
VGPRs, either by a VMEM instruction or in the case of samplers,
floating-point calculations.  When this happens, we need to use
v_readfirstlane to copy these values back to sgprs.

Reviewers: mareko, arsenm

Subscribers: arsenm, llvm-commits

Differential Revision: http://reviews.llvm.org/D17102

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@271642 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrFormats.td
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SIInstrInfo.h
lib/Target/AMDGPU/SIRegisterInfo.cpp
lib/Target/AMDGPU/SIRegisterInfo.h
test/CodeGen/AMDGPU/sgpr-copy.ll
test/CodeGen/AMDGPU/split-smrd.ll [new file with mode: 0644]