llvm-project/llvm/test/LTO/X86
Pirama Arumuga Nainar 8b46544641 [IRMover] Don't map globals if their types are the same
Summary:
During IR Linking, if the types of two globals in destination and source
modules are the same, it can only be because the global in the
destination module is originally from the source module and got added to
the destination module from a shared metadata.

We shouldn't map this type to itself in case the type's components get
remapped to a new type from the destination (for instance, during the
loop over SrcM->getIdentifiedStructTypes() further below in
IRLinker::computeTypeMapping()).

Fixes PR40312.

Reviewers: tejohnson, pcc, srhines

Subscribers: mehdi_amini, hiraditya, steven_wu, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66814

llvm-svn: 371643
2019-09-11 18:35:49 +00:00
..
Inputs [IRMover] Don't map globals if their types are the same 2019-09-11 18:35:49 +00:00
attrs.ll
bcsection.ll
cfi_endproc.ll
codemodel-1.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
codemodel-2.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
codemodel-3.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
current-section.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
diagnostic-handler-noexit.ll
diagnostic-handler-remarks-with-hotness.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
diagnostic-handler-remarks.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
disable-verify.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
dllimport.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
internalize.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
invalid.ll [NFC] Adjust "invalid.ll.bc" tests to check for AttrKind #255 not #63 2019-07-11 01:14:30 +00:00
keep-used-puts-during-instcombine.ll
libcall-overridden-via-alias.ll Update test of r344198 to work with release builds. 2018-10-11 20:19:25 +00:00
linkonce_odr_func.ll
list-dependent-libraries.ll [ThinLTO]LTO]Legacy] Fix dependent libraries support by adding querying of the IRSymtab 2019-06-12 11:07:56 +00:00
list-symbols.ll
lit.local.cfg
llvm-lto-output.ll
no-undefined-puts-when-implemented.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
objc-detection-i386.ll
objc-detection.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
parallel.ll
pr25919.ll
pr38046.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
private-symbol.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
remangle_intrinsics.ll IR: Add immarg attribute 2019-03-12 21:02:54 +00:00
remangle_intrinsics_tbaa.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
restore-externals.ll
runtime-library.ll [llvm-nm][llvm-readelf] Avoid single-dash -long-option in tests 2019-04-27 16:12:14 +00:00
set-merged.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
stdcall.ll
strip-debug-info-no-call-loc.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
strip-debug-info.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
symver-asm.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
symver-asm2.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
symver-asm3.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
tailcallelim.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
triple-init.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
triple-init2.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
type-mapping-bug.ll
type-mapping-bug2.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
type-mapping-bug3.ll [IRMover] Don't map globals if their types are the same 2019-09-11 18:35:49 +00:00
unnamed.ll