mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
525ee88977
Summary: We can sometimes end up with multiple copies of a local variable that have the same GUID in the index. This happens when there are local variables with the same name that are in different source files having the same name/path at compile time (but compiled into different bitcode objects). In this case make sure we import the copy in the caller's module. This enables importing both of the variables having the same GUID (but which will have different promoted names since the module paths, and therefore the module hashes, will be distinct). Importing the wrong copy is particularly problematic for read only variables, since we must import them as a local copy whenever referenced. Otherwise we get undefs at link time. Note that the llvm-lto.cpp and ThinLTOCodeGenerator changes are needed for testing the distributed index case via clang, which will be sent as a separate clang-side patch shortly. We were previously not doing the dead code/read only computation before computing imports when testing distributed index generation (like it was for testing importing and other ThinLTO mechanisms alone). Reviewers: evgeny777 Subscribers: mehdi_amini, inglorion, eraman, steven_wu, dexonsmith, dang, llvm-commits Differential Revision: https://reviews.llvm.org/D55047 llvm-svn: 347886 |
||
---|---|---|
.. | ||
alias_import.ll | ||
alias_internal.ll | ||
alias_resolution.ll | ||
autoupgrade.bc | ||
cache-icall.ll | ||
cache-import-lists1.ll | ||
cache-import-lists2.ll | ||
cache-typeid-resolutions1.ll | ||
cache-typeid-resolutions2.ll | ||
cache-typeid-resolutions3.ll | ||
cache-typeid-resolutions-import.ll | ||
cache.ll | ||
callees-metadata.ll | ||
cfi-distributed.ll | ||
crash_debuginfo.ll | ||
deadstrip.ll | ||
debuginfo-compositetype-import.ll | ||
debuginfo-cu-import.ll | ||
diagnostic-handler-remarks.ll | ||
dicompositetype-unique2.ll | ||
dicompositetype-unique-alias.ll | ||
dicompositetype-unique.ll | ||
distributed_import.ll | ||
distributed_indexes.ll | ||
dot-dumper.ll | ||
drop-debug-info.bc | ||
drop-debug-info.ll | ||
dsolocal_dllimport.ll | ||
emit_imports2.ll | ||
emit_imports.ll | ||
empty_module_with_cache.ll | ||
empty.ll | ||
export.ll | ||
funcimport2.ll | ||
funcimport-debug.ll | ||
funcimport-tbaa.ll | ||
funcimport.ll | ||
globals-import-blockaddr.ll | ||
globals-import-cf-baz.ll | ||
globals-import.ll | ||
import_opaque_type.ll | ||
index-const-prop-alias.ll | ||
index-const-prop-cache-foo.ll | ||
index-const-prop-cache-test1.ll | ||
index-const-prop-cache-test2.ll | ||
index-const-prop-comdat.ll | ||
index-const-prop-define-g.ll | ||
index-const-prop-full-lto.ll | ||
index-const-prop-gvref.ll | ||
index-const-prop-linkage.ll | ||
index-const-prop.ll | ||
lazyload_metadata.ll | ||
linkonce_aliasee_ref_import.ll | ||
linkonce_resolution_comdat.ll | ||
llvm.used.ll | ||
local_name_conflict1.ll | ||
local_name_conflict2.ll | ||
local_name_conflict_var1.ll | ||
local_name_conflict_var2.ll | ||
merge-triple.ll | ||
module_asm2.ll | ||
module_asm.ll | ||
noinline.ll | ||
personality-local.ll | ||
personality.ll | ||
pr35472.ll | ||
reference_non_importable.ll | ||
referenced_by_constant.ll | ||
section.ll | ||
select_right_alias_definition1.ll | ||
select_right_alias_definition2.ll | ||
strong_non_prevailing.ll | ||
weak_resolution.ll |