Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BOLT] Deprecate hfsort+ in favor of cdsort #72408

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

spupyrev
Copy link
Contributor

@spupyrev spupyrev commented Nov 15, 2023

A new function sorting algorithm (cdsort) in LLVM is an optimized
version of BOLT's hfsort+. In order to avoid code duplication and
simplify maintenance, getting rid of hfsort+.

Perf-wise this is likely a neutral change, though differences on
individual benchmarks are possible, since the generated function layout
has changed. I tested cdsort vs hfsort+ on a number of open-source and
prod binaries built in different modes and record an average neutral
perf difference, perhaps with more "green" counters.

@spupyrev spupyrev marked this pull request as ready for review November 15, 2023 16:04
@maksfb maksfb changed the title [BOLT] Deprecating hfsort+ in favor of cdsort [BOLT] Deprecate hfsort+ in favor of cdsort Dec 13, 2023
Copy link
Contributor

@maksfb maksfb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spupyrev spupyrev merged commit 9058503 into llvm:main Jan 26, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants