llvm / llvm/llvm-project

[BOLT] Switch default perf2bolt format to YAML

Open
#186,826 2 comments 1 reaction 0 assignees View on GitHub
BOLT
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

YAML embeds metadata for stale matching, making it better suited to cases with non-zero gap (profiled != pre-bolt binary). YAML profile is at parity with fdata in terms of optimizations.

Since `-o` output format is controlled by `output-format`, the switch can be straightforward. `-w` flag can be kept for backwards compatibility with a warning (still producing yaml, redirecting users to `output-format`), but eventually dropped.

Contributor guide

Open the contributing guide

Research direction

Locate perf2bolt's handling of the output-format setting and the legacy -w option; start by tracing how -o selects the output format. Done means YAML is the default, -w remains supported with a warning and redirects users to output-format, and existing behavior is covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
yaml
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.