Revert D135427 "[LTO] Make local linkage GlobalValue in non-prevailing COMDAT availab...
authorFangrui Song <i@maskray.me>
Wed, 19 Oct 2022 18:24:12 +0000 (11:24 -0700)
committerFangrui Song <i@maskray.me>
Wed, 19 Oct 2022 18:24:12 +0000 (11:24 -0700)
commitc80b12d352d5c88cd812bf2707672f11b3010984
treee73388c17462b18982e898282126df7cf686334f
parent26eb2c6b42f7cd10b54399e2b7c69a25560e23a0
Revert D135427 "[LTO] Make local linkage GlobalValue in non-prevailing COMDAT available_externally"

This reverts commit 8ef3fd8d59ba0100bc6e83350ab1e978536aa531.

I mentioned that GlobalAlias was not handled. It turns out GlobalAlias has to be handled in the same patch (as opposed to in a follow-up),
as otherwise clang codegen of C5/D5 constructor/destructor would regress (https://reviews.llvm.org/D135427#3869003).
llvm/lib/LTO/LTO.cpp
llvm/lib/Transforms/IPO/FunctionImport.cpp
llvm/test/LTO/Resolution/X86/comdat-mixed-lto.ll
llvm/test/ThinLTO/X86/Inputs/linkonce_resolution_comdat.ll
llvm/test/ThinLTO/X86/linkonce_resolution_comdat.ll