Skip to content

Commit 285b57b

Browse files
authored
Update BOLT's README.md example optimization flag (#166251)
Drop hfsort in favor of a more modern function reordering algorithm.
1 parent 73ef4dd commit 285b57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Once you have `perf.fdata` ready, you can use it for optimizations with
173173
BOLT. Assuming your environment is setup to include the right path, execute
174174
`llvm-bolt`:
175175
```
176-
$ 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
176+
$ 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
177177
```
178178

179179
If you do need an updated debug info, then add `-update-debug-sections` option

0 commit comments

Comments
 (0)