diff options
author | Teresa Johnson <tejohnson@google.com> | 2023-05-01 19:04:00 -0700 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2023-05-02 07:49:03 -0700 |
commit | 48f18ecd8293e7828bf7ae2eeac975785892a0c4 (patch) | |
tree | 7be408cd67be495844d52c6b5606cde83da06bd1 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 46740dd02babfc47edd9f8fdb03479ad61223246 (diff) | |
download | llvm-48f18ecd8293e7828bf7ae2eeac975785892a0c4.zip llvm-48f18ecd8293e7828bf7ae2eeac975785892a0c4.tar.gz llvm-48f18ecd8293e7828bf7ae2eeac975785892a0c4.tar.bz2 |
[ThinLTO] Loosen up variable importing correctness checks
After importing variables, we do some checking to ensure that variables
marked read or write only, which have been marked exported (e.g.
because a referencing function has been exported), are on at least one
module's imports list. This is because the read or write only variables
will be internalized, so we need a copy any any module that references
it.
This checking is overly conservative in the case of linkonce_odr or
other linkage types where there can already be a duplicate copy in
existence in the importing module, which therefore wouldn't need to
import it. Loosen up the checking for these linkage types.
Fixes https://github.com/llvm/llvm-project/issues/62468.
Differential Revision: https://reviews.llvm.org/D149630
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions