[llvm] [BOLT][merge-fdata]Fix support for fdata files starting with no_lbr on ARM platform (PR #112328)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 12:24:41 PDT 2024


================
@@ -265,7 +252,10 @@ bool isYAML(const StringRef Filename) {
 void mergeLegacyProfiles(const SmallVectorImpl<std::string> &Filenames) {
   errs() << "Using legacy profile format.\n";
   std::optional<bool> BoltedCollection;
+  std::optional<bool> NoLbr;
   std::mutex BoltedCollectionMutex;
+  std::mutex NoLbrMutex;
----------------
aaupov wrote:

Can we avoid the use of mutexes here by just setting bolted_collection/no_lbr per profile and checking that after we parse all profiles?

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


More information about the llvm-commits mailing list