AMDGPU/SI: Use v_readfirstlane_b32 when restoring SGPRs spilled to scratch
authorTom Stellard <thomas.stellard@amd.com>
Mon, 2 May 2016 20:11:44 +0000 (20:11 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 2 May 2016 20:11:44 +0000 (20:11 +0000)
commit154c9cdd2418f5336780deee8c5be13c67e5c3be
tree991e06c270e656d077a4a9be7ed2e3318bb27016
parent76af416afc02c53ce636057661d88e54dbfd2465
AMDGPU/SI: Use v_readfirstlane_b32 when restoring SGPRs spilled to scratch

We were using v_readlane_b32 with the lane set to zero, but this won't
work if thread 0 is not active.

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

llvm-svn: 268295
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/test/CodeGen/AMDGPU/si-spill-sgpr-stack.ll