[llvm-commits] [llvm] r53045 - /llvm/trunk/tools/llvm-ld/Optimize.cpp

Owen Anderson resistor at mac.com
Wed Jul 2 11:42:07 PDT 2008


Author: resistor
Date: Wed Jul  2 13:42:07 2008
New Revision: 53045

URL: http://llvm.org/viewvc/llvm-project?rev=53045&view=rev
Log:
Use ADCE instead of just DCE.  ADCE will better clean up after jump threading,
for instance.

Modified:
    llvm/trunk/tools/llvm-ld/Optimize.cpp

Modified: llvm/trunk/tools/llvm-ld/Optimize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ld/Optimize.cpp?rev=53045&r1=53044&r2=53045&view=diff

==============================================================================
--- llvm/trunk/tools/llvm-ld/Optimize.cpp (original)
+++ llvm/trunk/tools/llvm-ld/Optimize.cpp Wed Jul  2 13:42:07 2008
@@ -179,7 +179,7 @@
   if (!DisableOptimizations) {
     addPass(Passes, createInstructionCombiningPass());
     addPass(Passes, createCFGSimplificationPass());
-    addPass(Passes, createDeadCodeEliminationPass());
+    addPass(Passes, createAggressiveDCEPass());
     addPass(Passes, createGlobalDCEPass());
   }
 





More information about the llvm-commits mailing list