[llvm] [NVPTX][InferAS] assume alloca instructions are in local AS (PR #121710)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 13 21:29:11 PST 2025
================
@@ -562,4 +563,11 @@ Value *NVPTXTTIImpl::rewriteIntrinsicWithAddressSpace(IntrinsicInst *II,
}
}
return nullptr;
-}
\ No newline at end of file
+}
+
+unsigned NVPTXTTIImpl::getAssumedAddrSpace(const Value *V) const {
+ if (isa<AllocaInst>(V))
+ return ADDRESS_SPACE_LOCAL;
+
----------------
arsenm wrote:
This is worse than just changing the alloca addrspace
https://github.com/llvm/llvm-project/pull/121710
More information about the llvm-commits
mailing list