From abfd3a816226d3071f203533cb01a26a7872711d Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 2 Jul 2008 18:42:07 +0000 Subject: [PATCH] Use ADCE instead of just DCE. ADCE will better clean up after jump threading, for instance. llvm-svn: 53045 --- llvm/tools/llvm-ld/Optimize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-ld/Optimize.cpp b/llvm/tools/llvm-ld/Optimize.cpp index a3f1986b243a..0cbd29ccb392 100644 --- a/llvm/tools/llvm-ld/Optimize.cpp +++ b/llvm/tools/llvm-ld/Optimize.cpp @@ -179,7 +179,7 @@ void Optimize(Module* M) { if (!DisableOptimizations) { addPass(Passes, createInstructionCombiningPass()); addPass(Passes, createCFGSimplificationPass()); - addPass(Passes, createDeadCodeEliminationPass()); + addPass(Passes, createAggressiveDCEPass()); addPass(Passes, createGlobalDCEPass()); }