diff options
author | Nikita Popov <npopov@redhat.com> | 2023-07-28 14:21:00 +0200 |
---|---|---|
committer | Tobias Hieta <tobias@hieta.se> | 2023-07-29 08:40:45 +0200 |
commit | cff7a7747db02d1214b20e98677e5ddcb402ffe0 (patch) | |
tree | b66bdabded8c2f50322588e21ca8f427dfc0b369 /libcxx/test | |
parent | bafedb1c2c64823ecee547f9776c4311a7f0930c (diff) | |
download | llvm-llvmorg-17.0.0-rc1.zip llvm-llvmorg-17.0.0-rc1.tar.gz llvm-llvmorg-17.0.0-rc1.tar.bz2 |
[ThinLTO] Use module hash instead of module ID for cache keyllvmorg-17.0.0-rc1
This is a followup to D151165. Instead of using the module ID, use
the module hash for sorting the import list. The module hash is what
will actually be included in the hash.
This has the advantage of being independent of the module order,
which is something that Rust relies on.
A caveat here is that the test doesn't quite work for linkonce_odr
functions, because the function may be imported from two different
modules, and the first one on the llvm-lto2 command line gets picked
(rather than, say, the prevailing copy). This doesn't really matter
for Rust's purposes (because it does not use linkonce_odr linkage),
but may still be worth addressing. For now I'm using a variant of
the test using internal instead of linkonce_odr functions.
Differential Revision: https://reviews.llvm.org/D156525
(cherry picked from commit 279c2971951c2ea58a2bd1e6687ce61451f9d329)
Diffstat (limited to 'libcxx/test')
0 files changed, 0 insertions, 0 deletions