aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-ld
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-07-02 18:42:07 +0000
committerOwen Anderson <resistor@mac.com>2008-07-02 18:42:07 +0000
commit8407edacc758a020ff413ce2d495a9f5e7e4d22a (patch)
tree720115cad6a677cb9f3879a7990e929d96589b01 /tools/llvm-ld
parent73b03a2e6327bf3190ca998a67835070df56c643 (diff)
downloadexternal_llvm-8407edacc758a020ff413ce2d495a9f5e7e4d22a.zip
external_llvm-8407edacc758a020ff413ce2d495a9f5e7e4d22a.tar.gz
external_llvm-8407edacc758a020ff413ce2d495a9f5e7e4d22a.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/llvm-ld')
-rw-r--r--tools/llvm-ld/Optimize.cpp2
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());
}