[llvm-commits] CVS: llvm/tools/llvm-ld/Optimize.cpp

Nick Lewycky nicholas at mxc.ca
Thu Apr 5 15:42:33 PDT 2007


Huh? What is the DCE pass doing that the global-dce isn't?

Chris Lattner wrote:
> 
> Changes in directory llvm/tools/llvm-ld:
> 
> Optimize.cpp updated: 1.18 -> 1.19
> ---
> Log message:
> 
> run a late dce pass to clean up extra cruft.
> 
> 
> ---
> Diffs of the changes:  (+1 -0)
> 
>  Optimize.cpp |    1 +
>  1 files changed, 1 insertion(+)
> 
> 
> Index: llvm/tools/llvm-ld/Optimize.cpp
> diff -u llvm/tools/llvm-ld/Optimize.cpp:1.18 llvm/tools/llvm-ld/Optimize.cpp:1.19
> --- llvm/tools/llvm-ld/Optimize.cpp:1.18	Tue Mar  6 22:41:30 2007
> +++ llvm/tools/llvm-ld/Optimize.cpp	Thu Apr  5 11:50:20 2007
> @@ -201,6 +201,7 @@
>    if (!DisableOptimizations) {
>      addPass(Passes, createInstructionCombiningPass());
>      addPass(Passes, createCFGSimplificationPass());
> +    addPass(Passes, createDeadCodeEliminationPass());
>      addPass(Passes, createGlobalDCEPass());
>    }
>  
> 
> 
> 
> _______________________________________________
> 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