[llvm] [Lint][AMDGPU] No store to const addrspace (PR #109181)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 09:45:28 PDT 2024
================
@@ -401,6 +403,10 @@ void Lint::visitMemoryReference(Instruction &I, const MemoryLocation &Loc,
"Unusual: Address one pointer dereference", &I);
if (Flags & MemRef::Write) {
+ if (TT.isAMDGPU())
+ Check(!AMDGPU::isConstantAddressSpace(UnderlyingObject->getType()->getPointerAddressSpace()),
----------------
arsenm wrote:
This kind of verification doesn't really fit in with TTI
https://github.com/llvm/llvm-project/pull/109181
More information about the llvm-commits
mailing list