[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
Thu Dec 12 05:56:02 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:

I've updated both comment and variable name to avoid confusion.

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


More information about the llvm-commits mailing list