mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-13 04:24:40 +00:00
Properly update AA metadata when performing call slot optimization
Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7482 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228500 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -750,6 +750,16 @@ bool MemCpyOpt::performCallSlotOptzn(Instruction *cpy,
|
||||
// its dependence information by changing its parameter.
|
||||
MD->removeInstruction(C);
|
||||
|
||||
// Update AA metadata
|
||||
// FIXME: MD_tbaa_struct and MD_mem_parallel_loop_access should also be
|
||||
// handled here, but combineMetadata doesn't support them yet
|
||||
unsigned KnownIDs[] = {
|
||||
LLVMContext::MD_tbaa,
|
||||
LLVMContext::MD_alias_scope,
|
||||
LLVMContext::MD_noalias,
|
||||
};
|
||||
combineMetadata(C, cpy, KnownIDs);
|
||||
|
||||
// Remove the memcpy.
|
||||
MD->removeInstruction(cpy);
|
||||
++NumMemCpyInstr;
|
||||
|
Reference in New Issue
Block a user