[llvm-commits] [llvm] r50081 - in /llvm/trunk/tools: lto/lto.cpp lto2/LTOCodeGenerator.cpp
Chris Lattner
clattner at apple.com
Mon Apr 21 21:10:20 PDT 2008
Shouldn't this be run after gvn like opt does?
-Chris
On Apr 21, 2008, at 8:57 PM, Owen Anderson wrote:
> 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
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list