diff options
| author | Owen Anderson <resistor@mac.com> | 2008-02-20 08:23:02 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-02-20 08:23:02 +0000 |
| commit | b4724dbda23aed9148c91fb0cfc5f9052e376bee (patch) | |
| tree | 95420ad36290125d31d9773f84cd9ad79db20309 | |
| parent | ab5729cfe648b7e22c4caf7825f7387e7c359602 (diff) | |
| download | bcm5719-llvm-b4724dbda23aed9148c91fb0cfc5f9052e376bee.tar.gz bcm5719-llvm-b4724dbda23aed9148c91fb0cfc5f9052e376bee.zip | |
When performing return slot optimization, remember to inform memdep when we're removing the memcpy.
llvm-svn: 47364
| -rw-r--r-- | llvm/lib/Transforms/Scalar/GVN.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index 2ecc0e5d1f2..481956f6b4c 100644 --- a/llvm/lib/Transforms/Scalar/GVN.cpp +++ b/llvm/lib/Transforms/Scalar/GVN.cpp @@ -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; |

