[llvm] [AMDGPU] Check noalias.addrspace in mayAccessScratchThroughFlat (PR #151319)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 1 18:10:13 PDT 2025


================
@@ -1630,6 +1631,22 @@ getIntegerVecAttribute(const Function &F, StringRef Name, unsigned Size) {
   return Vals;
 }
 
+bool hasValueInRange(const MDNode *MD, unsigned Val) {
+  if (!MD)
+    return false;
----------------
arsenm wrote:

Make this a reference and pull the null check out of the utility function? 

https://github.com/llvm/llvm-project/pull/151319


More information about the llvm-commits mailing list