Move "Eliminate Available Externally" immediately after the inliner
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 3 May 2016 15:46:00 +0000 (15:46 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 3 May 2016 15:46:00 +0000 (15:46 +0000)
commit7f7d8be518ce76c826f69dda72fbcb08e2df3ef7
tree2bc55bea71ae9eb67add08712b0c9b03c2417071
parentb52eb8b22609594db49dde449b5bff13d3d88588
Move "Eliminate Available Externally" immediately after the inliner

This pass is supposed to reduce the size of the IR for compile time
purpose. We should run it ASAP, except when we prepare for LTO or
ThinLTO, and we want to keep them available for link-time inline.

Differential Revision: http://reviews.llvm.org/D19813

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 268394
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/test/Other/pass-pipelines.ll