AMDGPU/SI: Insert wait states required after v_readfirstlane on SI
authorTom Stellard <thomas.stellard@amd.com>
Tue, 12 Apr 2016 18:40:43 +0000 (18:40 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 12 Apr 2016 18:40:43 +0000 (18:40 +0000)
commitab1d3a9d505ab01658d0a1e7adf06fc7415fc64c
tree2501150a557b367ed3b6d47dd2ec60fdda54aaad
parent3b08238f7878988a8e2737cdab42fcc334c8547f
AMDGPU/SI: Insert wait states required after v_readfirstlane on SI

Summary:
We will be able to handle this case much better once the hazard recognizer
is finished, but this conservative implementation  fixes a hang with the piglit
test:

spec/arb_arrays_of_arrays/execution/sampler/fs-nested-struct-arrays-nonconst-nested-arra

Reviewers: arsenm, nhaehnle

Subscribers: arsenm, llvm-commits

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

llvm-svn: 266105
llvm/lib/Target/AMDGPU/SIInsertWaits.cpp
llvm/test/CodeGen/AMDGPU/missing-store.ll
llvm/test/CodeGen/AMDGPU/salu-to-valu.ll