[compiler-rt] [llvm] [ThinLTO][TypeProf] Allow importing of local-linkage global variables in mod1:func_foo-> mod2:local-var chain under an option (PR #100448)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 16:47:45 PDT 2024
================
@@ -196,6 +207,23 @@ static std::unique_ptr<Module> loadFile(const std::string &FileName,
return Result;
}
+static bool shouldSkipLocalInAnotherModule(const GlobalVarSummary *RefSummary,
+ size_t NumRefs,
+ StringRef ImporterModule) {
+ // We can import a local from another module if all inputs are compiled
+ // with full paths or when there is one entry in the list.
----------------
teresajohnson wrote:
"when there is one definition"
https://github.com/llvm/llvm-project/pull/100448
More information about the llvm-commits
mailing list