AMDGPU: Properly handle shader inputs with split arguments
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 13 Jul 2018 16:40:37 +0000 (16:40 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 13 Jul 2018 16:40:37 +0000 (16:40 +0000)
commitd362b6ad29eaadf2d11df219b2030b36e61682ae
treec2d94cbc033c5901dd7d36f011b599d36dca4a98
parentde950777804d0fb9ce42190e1fe28e28ec033c2b
AMDGPU: Properly handle shader inputs with split arguments

This needs to refer to arguments by their original argument
index, not the argument split index which depends on what
the type splitting decides to do.

Also avoid increment PSInputNum for each split piece.

llvm-svn: 337022
llvm/lib/Target/AMDGPU/SIISelLowering.cpp