diff options
author | Teresa Johnson <tejohnson@google.com> | 2017-01-05 21:34:18 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2017-01-05 21:34:18 +0000 |
commit | 6c475a75953811bd14b115f5ab88d61ec996a799 (patch) | |
tree | 33245462e72aa549f6fd059ad6dd5f4ba0de6b5f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 8f05c786c9996b82055358289c7d2f4c748a21c6 (diff) | |
download | bcm5719-llvm-6c475a75953811bd14b115f5ab88d61ec996a799.tar.gz bcm5719-llvm-6c475a75953811bd14b115f5ab88d61ec996a799.zip |
ThinLTO: add early "dead-stripping" on the Index
Summary:
Using the linker-supplied list of "preserved" symbols, we can compute
the list of "dead" symbols, i.e. the one that are not reachable from
a "preserved" symbol transitively on the reference graph.
Right now we are using this information to mark these functions as
non-eligible for import.
The impact is two folds:
- Reduction of compile time: we don't import these functions anywhere
or import the function these symbols are calling.
- The limited number of import/export leads to better internalization.
Patch originally by Mehdi Amini.
Reviewers: mehdi_amini, pcc
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D23488
llvm-svn: 291177
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions