AMDGPU: Fix chains for memory ops dependent on argument loads
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 10 Jul 2015 22:51:36 +0000 (22:51 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 10 Jul 2015 22:51:36 +0000 (22:51 +0000)
commitce43851064d869019311df2b81a0a530cd61a784
tree9464a2410b83d3fdc0c42860b1791731896ab5b7
parent1cca87a9818bfe76dda0e321c1a05d08a46c3c1e
AMDGPU: Fix chains for memory ops dependent on argument loads

Most loads and stores are derived from pointers derived from
a kernel argument load inserted during argument lowering.
This was just using the EntryToken chain for the argument loads,
and any users of these loads were also on the EntryToken chain.

Return the chain of the lowered argument load so that dependent loads
end up on the correct chain.

No test since I'm not aware of any case where this actually
broke.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241960 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIISelLowering.cpp