[PATCH] D92394: [amdgpu] Teach one more case for assumed global pointers.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 4 14:08:21 PST 2020
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp:553
+ const Argument *Arg = dyn_cast_or_null<Argument>(getUnderlyingObject(Ptr));
+ if (Arg && Arg->onlyReadsMemory() && Arg->hasNoAliasAttr() &&
+ Arg->getParent()->getCallingConv() == CallingConv::AMDGPU_KERNEL)
----------------
Readonly is incorrect here, as it only indicates the function does not write to the memory and does not indicate the memory may be changed by another function/thread. I also don't think noalias is really the correct check for the owned object
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92394/new/
https://reviews.llvm.org/D92394
More information about the llvm-commits
mailing list