llvm-project/llvm/test/LTO/X86/Inputs
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
..
bcsection.macho.s
bcsection.s
codemodel-3.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
invalid.ll.bc [NFC] Adjust "invalid.ll.bc" tests to check for AttrKind #255 not #63 2019-07-11 01:14:30 +00:00
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
remangle_intrinsics.ll
remangle_intrinsics_tbaa.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
strip-debug-info-bar.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
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
type-mapping-src.ll