[llvm-commits] [llvm] r47364 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Owen Anderson
resistor at mac.com
Wed Feb 20 00:23:02 PST 2008
Author: resistor
Date: Wed Feb 20 02:23:02 2008
New Revision: 47364
URL: http://llvm.org/viewvc/llvm-project?rev=47364&view=rev
Log:
When performing return slot optimization, remember to inform memdep when we're removing the memcpy.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=47364&r1=47363&r2=47364&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Wed Feb 20 02:23:02 2008
@@ -1139,6 +1139,7 @@
MD.dropInstruction(C);
// Remove the memcpy
+ MD.removeInstruction(cpy);
toErase.push_back(cpy);
return true;
More information about the llvm-commits
mailing list