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

Tibor Dusnoki via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 07:04:40 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');
----------------
tdusnoki wrote:

If it is, we've already dropped the first line just above when checking for boltedcollection.

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


More information about the llvm-commits mailing list