[PATCH] D11919: Enable EliminateAvailableExternally pass in the LTO pipeline.
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 07:30:30 PDT 2015
tejohnson updated this revision to Diff 31816.
tejohnson added a comment.
- Update comments per review.
http://reviews.llvm.org/D11919
Files:
lib/Transforms/IPO/PassManagerBuilder.cpp
Index: lib/Transforms/IPO/PassManagerBuilder.cpp
===================================================================
--- lib/Transforms/IPO/PassManagerBuilder.cpp
+++ 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.31816.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150811/43b27412/attachment.bin>
More information about the llvm-commits
mailing list