[PATCH] D17102: AMDGPU/SI: Make sure MIMG descriptors and samplers stay in SGPRs

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 14:24:43 PST 2016


tstellarAMD created this revision.
tstellarAMD added reviewers: arsenm, mareko.
tstellarAMD added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.

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.

http://reviews.llvm.org/D17102

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17102.47529.patch
Type: text/x-patch
Size: 9764 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160210/511fd747/attachment.bin>


More information about the llvm-commits mailing list