[llvm] [InstCombine] Use copyMetadata in PointerReplacer::replace (PR #201827)

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 09:12:32 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:

I'm tempted to drop the test, but :shrug: I guess it's fine either way.

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


More information about the llvm-commits mailing list