AMDGPU/SI: Fix implemenation of isSourceOfDivergence() for graphics shaders
authorTom Stellard <thomas.stellard@amd.com>
Sat, 19 Dec 2015 02:54:15 +0000 (02:54 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Sat, 19 Dec 2015 02:54:15 +0000 (02:54 +0000)
commit688dd45c474742aa9215ea44b8c818272f6948af
tree382c569e3ddab1f77339928e3e2be8d55a344b44
parenta1e5f35b029913c6226795f4c421693cfc68629e
AMDGPU/SI: Fix implemenation of isSourceOfDivergence() for graphics shaders

Summary:
The analysis of shader inputs was completely wrong.  We were passing the
wrong index to AttributeSet::hasAttribute() and the logic for which
inputs where in SGPRs was wrong too.

Reviewers: arsenm

Subscribers: arsenm, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256082 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
test/Analysis/DivergenceAnalysis/AMDGPU/kernel-args.ll [new file with mode: 0644]
test/Analysis/DivergenceAnalysis/AMDGPU/lit.local.cfg [new file with mode: 0644]