[llvm] [NVPTX][InferAS] assume alloca instructions are in local AS (PR #121710)
    Alex MacLean via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Feb 19 12:57:27 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;
+
----------------
AlexMaclean wrote:
Since I haven't heard back on this discussion for a while now, and this seems more like a possible future enhancement than a blocking issue, I'll plan to land this change at the end of the week unless I hear back otherwise. CC @arsenm 
https://github.com/llvm/llvm-project/pull/121710
    
    
More information about the llvm-commits
mailing list