aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2025-03-07 07:17:54 +0700
committerGitHub <noreply@github.com>2025-03-07 07:17:54 +0700
commit410a5b151888131b727826d9b030b7df134dacc9 (patch)
tree2055a3d5a5f1a96ee0aa42c7db19f1f6000f9870 /llvm/lib/Transforms/Utils/Local.cpp
parent6916438b65ee26ac75684dfceb4bdb7e87841ff7 (diff)
downloadllvm-410a5b151888131b727826d9b030b7df134dacc9.zip
llvm-410a5b151888131b727826d9b030b7df134dacc9.tar.gz
llvm-410a5b151888131b727826d9b030b7df134dacc9.tar.bz2
Local: Handle noalias.addrspace in copyMetadataForLoad (#130123)
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 6d7c710..95f0d09 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -3460,6 +3460,7 @@ void llvm::copyMetadataForLoad(LoadInst &Dest, const LoadInst &Source) {
case LLVMContext::MD_mem_parallel_loop_access:
case LLVMContext::MD_access_group:
case LLVMContext::MD_noundef:
+ case LLVMContext::MD_noalias_addrspace:
// All of these directly apply.
Dest.setMetadata(ID, N);
break;