[llvm] Attributor: Add noalias.addrspace attribute for store and load (PR #136553)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 28 01:00:13 PDT 2025
================
@@ -1390,9 +1390,17 @@ static bool runImpl(Module &M, AnalysisGetter &AG, TargetMachine &TM,
if (auto *LI = dyn_cast<LoadInst>(&I)) {
A.getOrCreateAAFor<AAAddressSpace>(
IRPosition::value(*LI->getPointerOperand()));
+ const_cast<AANoAliasAddrSpace *>(
----------------
arsenm wrote:
Shouldn't really need to know what the target 'maximum' is. This should be tolerant of the full 24-bit range of values. The metadata is defined in terms of the address space of the object definition
https://github.com/llvm/llvm-project/pull/136553
More information about the llvm-commits
mailing list