llvm-6502/include/llvm/Transforms
Teresa Johnson b78ea510c1 Add new EliminateAvailableExternally module pass, which is performed in
O2 compiles just before GlobalDCE, unless we are preparing for LTO.

This pass eliminates available externally globals (turning them into
declarations), regardless of whether they are dead/unreferenced, since
we are guaranteed to have a copy available elsewhere at link time.
This enables additional opportunities for GlobalDCE.

If we are preparing for LTO (e.g. a -flto -c compile), the pass is not
included as we want to preserve available externally functions for possible
link time inlining. The FE indicates whether we are doing an -flto compile
via the new PrepareForLTO flag on the PassManagerBuilder.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239480 91177308-0d34-0410-b5e6-96231b3b80d8
2015-06-10 17:49:28 +00:00
..
InstCombine
IPO Add new EliminateAvailableExternally module pass, which is performed in 2015-06-10 17:49:28 +00:00
Scalar
Utils Extend EarlyCSE to handle basic cases from JumpThreading and CVP 2015-05-22 23:53:24 +00:00
Instrumentation.h Delete unused createSanitizerCoverageModulePass overload. 2015-05-07 22:46:06 +00:00
IPO.h Add new EliminateAvailableExternally module pass, which is performed in 2015-06-10 17:49:28 +00:00
ObjCARC.h
Scalar.h [ARM] Pass a callback to FunctionPass constructors to enable skipping execution 2015-06-08 18:50:43 +00:00
Vectorize.h