[llvm] [InstCombine] Use copyMetadata in PointerReplacer::replace (PR #201827)
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 09:11:54 PDT 2026
================
@@ -481,6 +481,26 @@ define i8 @call_readonly_keep_alloca2() {
ret i8 %v
}
+; The pointer changes but the load type doesn't, so all metadata (here
+; !annotation, which the type-changing copyMetadataForLoad would drop) must be
----------------
jlebar wrote:
Yeah, not sure there is, kind of by construction in copyMetadataForLoad.
https://github.com/llvm/llvm-project/pull/201827
More information about the llvm-commits
mailing list