[compiler-rt] [llvm] [ThinLTO][TypeProf] Import local-linkage global var for mod1:func_foo-> mod2:local-var edge under an option (PR #100448)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 18:14:40 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.
----------------
minglotus-6 wrote:

done.

https://github.com/llvm/llvm-project/pull/100448


More information about the llvm-commits mailing list