This change requires https://reviews.llvm.org/D108361.
This patch handles noalias function arguments of amdgpu_kernel during
llvm.amdgcn.kernarg.segment.ptr() emission by converting them to the equivalent
metadata representation using !noalias and !alias.scope.
What is the purpose of this test ? The kernel input pointers are 'stored to undef', as such those stores see the available noalias scopes, but do not take part in it. Shouldn't the test store something to the pointers instead ?