[llvm] [LLVM][MemCpyOpt] Unify alias tags if we optimize allocas (PR #129537)

Dominik Adamski via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 7 07:31:12 PDT 2025


================
@@ -1681,6 +1687,12 @@ bool MemCpyOptPass::performStackMoveOptzn(Instruction *Load, Instruction *Store,
   for (Instruction *I : NoAliasInstrs)
     I->setMetadata(LLVMContext::MD_noalias, nullptr);
 
+  // Remove !tbaa and !tbaa_struct from the metadata, since they are invalid.
+  for (Instruction *I : OptimizedAllocaInstUsers) {
----------------
DominikAdamski wrote:

Yes, I combined them.

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


More information about the llvm-commits mailing list