mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
When performing return slot optimization, remember to inform memdep when we're removing the memcpy.
llvm-svn: 47364
This commit is contained in:
parent
a1f7505972
commit
52ed56338d
@ -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…
Reference in New Issue
Block a user