diff options
author | Owen Anderson <resistor@mac.com> | 2008-07-02 18:42:07 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-07-02 18:42:07 +0000 |
commit | 735e6eabf1f4a76023c8d798d4f3c9cfca9e869e (patch) | |
tree | 720115cad6a677cb9f3879a7990e929d96589b01 /tools | |
parent | ea6462bfd0ea2845338e98a1417b94bd4c575b9e (diff) | |
download | external_llvm-735e6eabf1f4a76023c8d798d4f3c9cfca9e869e.zip external_llvm-735e6eabf1f4a76023c8d798d4f3c9cfca9e869e.tar.gz external_llvm-735e6eabf1f4a76023c8d798d4f3c9cfca9e869e.tar.bz2 |
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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-ld/Optimize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } |