[llvm] [llvm-profgen] Support creating profiles of arbitrary events (PR #99026)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 23:48:30 PDT 2024


================
@@ -1062,6 +1132,18 @@ bool PerfScriptReader::isLBRSample(StringRef Line) {
   Line.trim().split(Records, " ", 2, false);
   if (Records.size() < 2)
     return false;
+  // Check if there is an event name before the leading IP.
----------------
WenleiHe wrote:

Update the header comment for this function to include a representation of LBR sample with event name

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


More information about the llvm-commits mailing list