diff options
author | Nikita Popov <npopov@redhat.com> | 2023-04-28 15:29:49 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-05-15 14:58:24 +0200 |
commit | 3060ee0c6adaf3015e39c90a0929029b8d368522 (patch) | |
tree | 385e71c60c4531e7e142abaf8125f858998e5ec3 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 7322d35476c34aa92720088554fb627154a99a6e (diff) | |
download | llvm-3060ee0c6adaf3015e39c90a0929029b8d368522.zip llvm-3060ee0c6adaf3015e39c90a0929029b8d368522.tar.gz llvm-3060ee0c6adaf3015e39c90a0929029b8d368522.tar.bz2 |
[Pipelines] Don't skip GlobalDCE in ThinLTO pre-link
GlobalDCE will only remove functions with available externally
linkage if they are unreferenced. As such, I don't believe there
is any problem with running this pass as part of the ThinLTO pre-link
pipeline. It will only remove functions that are completely dead in
that module, and I don't think there is any benefit to keeping them
around for the post-link phase.
There is no compile-time impact from the additional pass.
This is a followup to one of the side discussions in D146776.
Differential Revision: https://reviews.llvm.org/D149446
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions