[PATCH] D11919: Enable EliminateAvailableExternally pass in the LTO pipeline.

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 09:27:24 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL244622: Enable EliminateAvailableExternally pass in the LTO pipeline. (authored by tejohnson).

Changed prior to commit:
  http://reviews.llvm.org/D11919?vs=31816&id=31823#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11919

Files:
  llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp

Index: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
===================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -556,6 +556,9 @@
   // Delete basic blocks, which optimization passes may have killed.
   PM.add(createCFGSimplificationPass());
 
+  // Drop bodies of available externally objects to improve GlobalDCE.
+  PM.add(createEliminateAvailableExternallyPass());
+
   // Now that we have optimized the program, discard unreachable functions.
   PM.add(createGlobalDCEPass());
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11919.31823.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150811/9aacc62d/attachment.bin>


More information about the llvm-commits mailing list