[llvm] [BOLT][merge-fdata] Fix basic sample profile aggregation without LBR info (PR #118481)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 09:56:30 PST 2024


================
@@ -297,6 +298,25 @@ void mergeLegacyProfiles(const SmallVectorImpl<std::string> &Filenames) {
               "cannot mix profile collected in BOLT and non-BOLT deployments");
         BoltedCollection = false;
       }
+      // Check if the string "no_lbr" is in the first line
+      size_t FirstNewline = Buf.find('\n');
----------------
aaupov wrote:

Can it be on a second line, in case of boltedcollection?

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


More information about the llvm-commits mailing list