[llvm] [AMDGPU] Skip lowerNonKernelLDSAccesses if function is declaration. (PR #106975)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 08:20:11 PDT 2024
================
@@ -300,7 +300,8 @@ void AMDGPUSwLowerLDS::getUsesOfLDSByNonKernels() {
for (User *V : GV->users()) {
if (auto *I = dyn_cast<Instruction>(V)) {
Function *F = I->getFunction();
- if (!isKernelLDS(F) && F->hasFnAttribute(Attribute::SanitizeAddress))
+ if (!isKernelLDS(F) && F->hasFnAttribute(Attribute::SanitizeAddress) &&
+ !F->isDeclaration())
----------------
arsenm wrote:
This should be testable
https://github.com/llvm/llvm-project/pull/106975
More information about the llvm-commits
mailing list