[llvm-commits] [llvm] r50081 - in /llvm/trunk/tools: lto/lto.cpp lto2/LTOCodeGenerator.cpp
Owen Anderson
resistor at mac.com
Mon Apr 21 20:57:37 PDT 2008
Author: resistor
Date: Mon Apr 21 22:57:36 2008
New Revision: 50081
URL: http://llvm.org/viewvc/llvm-project?rev=50081&view=rev
Log:
Add MemCpyOpt to LTO.
Modified:
llvm/trunk/tools/lto/lto.cpp
llvm/trunk/tools/lto2/LTOCodeGenerator.cpp
Modified: llvm/trunk/tools/lto/lto.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/lto.cpp?rev=50081&r1=50080&r2=50081&view=diff
==============================================================================
--- llvm/trunk/tools/lto/lto.cpp (original)
+++ llvm/trunk/tools/lto/lto.cpp Mon Apr 21 22:57:36 2008
@@ -330,6 +330,7 @@
Passes.add(createGlobalsModRefPass()); // IP alias analysis
Passes.add(createLICMPass()); // Hoist loop invariants
+ Passed.add(createMemCpyOptPass()); // Remove dead memcpy's
Passes.add(createGVNPass()); // Remove common subexprs
Passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
Modified: llvm/trunk/tools/lto2/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto2/LTOCodeGenerator.cpp?rev=50081&r1=50080&r2=50081&view=diff
==============================================================================
--- llvm/trunk/tools/lto2/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto2/LTOCodeGenerator.cpp Mon Apr 21 22:57:36 2008
@@ -377,6 +377,7 @@
passes.add(createGlobalsModRefPass()); // IP alias analysis
passes.add(createLICMPass()); // Hoist loop invariants
+ passes.add(createMemCpyOptPass()); // Remove dead memcpy's
passes.add(createGVNPass()); // Remove common subexprs
passes.add(createDeadStoreEliminationPass()); // Nuke dead stores
More information about the llvm-commits
mailing list