[all-commits] [llvm/llvm-project] 03bbd0: [BOLT][NFCI] Skip validation in parseLBRSample (#1...

Amir Ayupov via All-commits all-commits at lists.llvm.org
Sun Jun 8 17:50:24 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 03bbd04bb7ae40dcda7b8bf1d6d09f63191503b0
      https://github.com/llvm/llvm-project/commit/03bbd04bb7ae40dcda7b8bf1d6d09f63191503b0
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2025-06-08 (Sun, 08 Jun 2025)

  Changed paths:
    M bolt/lib/Profile/DataAggregator.cpp
    M bolt/test/X86/pre-aggregated-perf.test

  Log Message:
  -----------
  [BOLT][NFCI] Skip validation in parseLBRSample (#143288)

Parsed branches and fall-throughs are validated in `doBranch` and
`doTrace` respectively. Simplify parseLBRSample by omitting the
validation. This also speeds up perf data processing as checks are only
done once for aggregated branches/fall-throughs and not individual LBR
entries.

Since invalid/external addresses are no longer sanitized during parsing,
sanitize them in `doBranch`.

Test Plan: updated X86/pre-aggregated-perf.test



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list