mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-15 09:33:39 +00:00
When performing return slot optimization, remember to inform memdep when we're removing the memcpy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47364 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8647bcd5de
commit
61d30a821f
@ -1139,6 +1139,7 @@ bool GVN::performReturnSlotOptzn(MemCpyInst* cpy, CallInst* C,
|
||||
MD.dropInstruction(C);
|
||||
|
||||
// Remove the memcpy
|
||||
MD.removeInstruction(cpy);
|
||||
toErase.push_back(cpy);
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user