[all-commits] [llvm/llvm-project] 3c4f00: [BOLT] Support perf2bolt-N in the driver

Amir Ayupov via All-commits all-commits at lists.llvm.org
Mon Oct 14 10:17:53 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c4f00905ea51c053819470688e1ef7105594749
      https://github.com/llvm/llvm-project/commit/3c4f00905ea51c053819470688e1ef7105594749
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2024-10-14 (Mon, 14 Oct 2024)

  Changed paths:
    M bolt/tools/driver/llvm-bolt.cpp

  Log Message:
  -----------
  [BOLT] Support perf2bolt-N in the driver

Check invoked tool with `starts_with`.

Addresses the issue where `perf2bolt` invoked using a distro symlink
`perf2bolt-16` fails to run in perf2bolt mode and runs in llvm-bolt mode
instead.

The issue is mentioned in https://vondra.me/posts/playing-with-bolt-and-postgres/

Test Plan:
```
ln -sf perf2bolt perf2bolt-20
perf2bolt-20 clang -p perf.data -o fdata.clang -w yaml.clang
...
PERF2BOLT: wrote 188593 objects and 0 memory objects to fdata.clang
```

Reviewers: ayermolo, rafaelauler, dcci, maksfb

Reviewed By: maksfb

Pull Request: https://github.com/llvm/llvm-project/pull/111072



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