Skip to content

Conversation

@rafaelauler
Copy link
Contributor

Drop hfsort in favor of a more modern function reordering algorithm.

Drop hfsort in favor of a more modern function reordering algorithm.
@llvmbot
Copy link
Member

llvmbot commented Nov 3, 2025

@llvm/pr-subscribers-bolt

Author: Rafael Auler (rafaelauler)

Changes

Drop hfsort in favor of a more modern function reordering algorithm.


Full diff: https://github.com/llvm/llvm-project/pull/166251.diff

1 Files Affected:

  • (modified) bolt/README.md (+1-1)
diff --git a/bolt/README.md b/bolt/README.md
index 902d1eb6e7694..55f742c5019f5 100644
--- a/bolt/README.md
+++ b/bolt/README.md
@@ -173,7 +173,7 @@ Once you have `perf.fdata` ready, you can use it for optimizations with
 BOLT. Assuming your environment is setup to include the right path, execute
 `llvm-bolt`:
 ```
-$ llvm-bolt <executable> -o <executable>.bolt -data=perf.fdata -reorder-blocks=ext-tsp -reorder-functions=hfsort -split-functions -split-all-cold -split-eh -dyno-stats
+$ llvm-bolt <executable> -o <executable>.bolt -data=perf.fdata -reorder-blocks=ext-tsp -reorder-functions=cdsort -split-functions -split-all-cold -split-eh -dyno-stats
 ```
 
 If you do need an updated debug info, then add `-update-debug-sections` option

@rafaelauler rafaelauler merged commit 285b57b into main Nov 3, 2025
12 checks passed
@rafaelauler rafaelauler deleted the users/rafaelauler/bolt-update-readme branch November 3, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants