From 735e6eabf1f4a76023c8d798d4f3c9cfca9e869e Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 2 Jul 2008 18:42:07 +0000 Subject: Use ADCE instead of just DCE. ADCE will better clean up after jump threading, for instance. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53045 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-ld/Optimize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/llvm-ld/Optimize.cpp b/tools/llvm-ld/Optimize.cpp index a3f1986..0cbd29c 100644 --- a/tools/llvm-ld/Optimize.cpp +++ b/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()); } -- cgit v1.1