[llvm] [AMDGPU] Skip lowerNonKernelLDSAccesses if function is declaration. (PR #106975)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 07:17:41 PDT 2024
================
@@ -274,6 +274,8 @@ void AMDGPUSwLowerLDS::getNonKernelsWithLDSArguments(const CallGraph &CG) {
Function *CalledFunc = CallerCGN->getFunction();
if (!CalledFunc)
continue;
+ if (CalledFunc->isDeclaration())
+ continue;
----------------
arsenm wrote:
Can pull this into the previous condition
https://github.com/llvm/llvm-project/pull/106975
More information about the llvm-commits
mailing list