AMDGPU: Insert kernarg code after allocas
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 5 May 2020 00:41:04 +0000 (20:41 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 6 May 2020 14:19:56 +0000 (10:19 -0400)
commit074c371a4835e7821dd5c9919a9299e342c944de
tree2649456af0da37710624a2cf2c48dea2314487d4
parentd05f8a38c54a85c54b3e864a988acbe521aaa032
AMDGPU: Insert kernarg code after allocas

This produces more normal looking IR by keeping all the allocas
clustered at the start of the block.
llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
llvm/test/CodeGen/AMDGPU/lower-kernargs.ll