[amdgpu][lds] Use the same isKernel predicate consistently
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 9 Nov 2022 16:45:02 +0000 (16:45 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Wed, 9 Nov 2022 16:45:05 +0000 (16:45 +0000)
commit0ba0398517778514eb44cb7ba9bf9d4d20a856e0
tree43824e0560d9db3531a0cace0cc0f032def7cfdb
parentb1fdeeec1a5a570be57bca17fcc647892d2030ab
[amdgpu][lds] Use the same isKernel predicate consistently

isKernelCC != isKernel(F->getCallingConv())
There's a test case (lower-kernel-lds.ll) that explicitly skips amdgpu_ps
so this change picks the isKernel predicate that continues to skip that
calling convention.

isKernel returns true for AMDGPU_KERNEL and SPIR_KERNEL. isKernelCC also
returns true for other calling conventions.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D136599
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUMemoryUtils.cpp