forked from OSchip/llvm-project
bfdad33b82
Summary: If we have a symbol with (linkonce|weak)_odr linkage, we do not want to dead strip it even it is not prevailing. IR level (linkonce|weak)_odr symbol can become non-prevailing when we mix ELF objects and IR objects where the (linkonce|weak)_odr symbol in the ELF object is prevailing and the ones in the IR objects are not. Stripping them will prevent us from doing optimizations with them. By not dead stripping them, We will convert these symbols to available_externally linkage as a result of non-prevailing and eventually dropping them after inlining. I modified cache-prevailing.ll to use linkonce linkage as it is testing whether cache prevailing bit is effective or not, not we should treat linkonce_odr alive or not Reviewers: tejohnson, pcc Subscribers: mehdi_amini, inglorion, eraman, steven_wu, dexonsmith, llvm-commits Differential Revision: https://reviews.llvm.org/D52893 llvm-svn: 343970 |
||
---|---|---|
.. | ||
Inputs | ||
alias-alias.ll | ||
alias.ll | ||
asm-output.ll | ||
cache-dso-local.ll | ||
cache-dso-local2.ll | ||
cache-prevailing.ll | ||
comdat-mixed-lto.ll | ||
comdat.ll | ||
common2.ll | ||
commons.ll | ||
dead-strip-alias.ll | ||
dead-strip-fulllto.ll | ||
diagnostic-handler-remarks-with-hotness.ll | ||
diagnostic-handler-remarks.ll | ||
empty-bitcode.test | ||
export-jumptable.ll | ||
function-alias-non-prevailing.ll | ||
ifunc.ll | ||
intrinsic.ll | ||
link-odr-availextern.ll | ||
linker-redef-thin.ll | ||
linker-redef.ll | ||
linkonce.ll | ||
lit.local.cfg | ||
load-sample-prof-icp.ll | ||
load-sample-prof.ll | ||
lowertypetests.ll | ||
mixed_lto.ll | ||
mod-asm-used.ll | ||
multi-thinlto.ll | ||
not-prevailing-alias.ll | ||
not-prevailing-variables.ll | ||
not-prevailing.ll | ||
setting-dso-local.ll | ||
symtab-elf.ll | ||
symtab.ll | ||
type-checked-load.ll |