llvm-project/llvm/test/LTO/X86
serge-sans-paille 232e0a011e
[lto] Do not try to internalize symbols with escaped name
Because of LLVM mangling escape sequence (through '\01' prefix), it is possible
for a single symbols two have two different IR representations.

For instance, consider @symbol and @"\01_symbol". On OSX, because of the system
mangling rules, these two IR names point are converted in the same final symbol
upon linkage.

LTO doesn't model this behavior, which may result in symbols being incorrectly
internalized (if all reference use the escaping sequence while the definition
doesn't).

The proper approach is probably to use the mangled name to compute GUID to
avoid the dual representation, but we can also avoid discarding symbols that are
bound to two different IR names. This is an approximation, but it's less
intrusive on the codebase.

Fix #57864

Differential Revision: https://reviews.llvm.org/D135710
2022-10-14 22:34:17 +02:00
..
Inputs
attrs.ll
bcsection.ll
cfi_endproc.ll
cfi_jt_aliases.ll
codemodel-1.ll
codemodel-2.ll
codemodel-3.ll
current-section.ll
diagnostic-handler-noexit.ll
diagnostic-handler-remarks-with-hotness.ll [Inline] Annotate inline pass name with link phase information for analysis. 2022-06-24 10:06:43 -07:00
diagnostic-handler-remarks.ll [LTO] Update remark test after 644a965c1e. 2022-07-04 15:21:15 +01:00
disable-verify.ll
dllimport.ll
embed-bitcode.ll
hidden-escaped-symbols-alt.ll [lto] Do not try to internalize symbols with escaped name 2022-10-14 22:34:17 +02:00
hidden-escaped-symbols.ll [lto] Do not try to internalize symbols with escaped name 2022-10-14 22:34:17 +02:00
inline-asm-lto-discard.ll
inline-asm-lto-discard2.ll
internalize.ll
invalid.ll
keep-used-puts-during-instcombine.ll
libcall-overridden-via-alias.ll
linkonce_odr_func.ll
list-dependent-libraries.ll
list-symbols.ll
lit.local.cfg
llvm-lto-output.ll
mix-opaque-typed.ll
no-undefined-puts-when-implemented.ll
objc-arc-contract.ll
objc-detection-i386.ll
objc-detection.ll
parallel.ll
pr25919.ll
pr38046.ll
print-macho-cpu.ll
private-symbol.ll
public-type-test.ll [WPD] Use new llvm.public.type.test intrinsic for potentially publicly visible classes 2022-07-26 08:01:08 -07:00
remangle_intrinsics.ll
remangle_intrinsics_tbaa.ll
restore-externals.ll
runtime-library.ll
set-merged.ll
stdcall.ll
strip-debug-info-no-call-loc.ll
strip-debug-info.ll
symver-asm.ll
symver-asm2.ll
symver-asm3.ll
tailcallelim.ll
tli-nobuiltin.ll
tli-sqrtf_finite.ll
triple-init.ll
triple-init2.ll
type-mapping-bug.ll
type-mapping-bug2.ll
type-mapping-bug3.ll
type-mapping-bug4.ll
unnamed.ll