summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2015-07-06 16:22:42 +0000
committerTeresa Johnson <tejohnson@google.com>2015-07-06 16:22:42 +0000
commitd3a33a16bb002d273ae47ad09ef6de38a0c86fdb (patch)
tree251d77a1b4ff062f0e267417aac765a70c664930 /clang/lib/Frontend/CompilerInvocation.cpp
parent0e224a646c549e934dacf09e75000c2132ddb8a0 (diff)
downloadbcm5719-llvm-d3a33a16bb002d273ae47ad09ef6de38a0c86fdb.tar.gz
bcm5719-llvm-d3a33a16bb002d273ae47ad09ef6de38a0c86fdb.zip
Resubmit "Add new EliminateAvailableExternally module pass" (r239480)
This change includes a fix for https://code.google.com/p/chromium/issues/detail?id=499508#c3, which required updating the visibility for symbols with eliminated definitions. --Original Commit Message-- 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. llvm-svn: 241466
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud