Skip to content

Commit

Permalink
boulder/data: Update BOLT optimization options
Browse files Browse the repository at this point in the history
- Do not use deprecated options
- Enable PLT optimizations
- Enable peephole optimizations
- Change split-stragegy to cdsplit
- Update debug functions now DWARF5 is well supported
  • Loading branch information
joebonrichie committed Oct 10, 2024
1 parent d59fb4b commit eaae501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boulder/data/macros/actions/pgo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ actions:
description: Apply bolt profile
command: |
boptim(){
llvm-bolt ${1}.orig -o ${1}.bolt -data=%(pgo_dir)/$(basename ${1}).fdata -reorder-blocks=cache+ -reorder-functions=hfsort+ -split-functions=3 -split-all-cold -split-eh -dyno-stats -icf=1 -use-gnu-stack ${2} ${3} ${4}
llvm-bolt ${1}.orig -o ${1}.bolt -data=%(pgo_dir)/$(basename ${1}).fdata -reorder-blocks=ext-tsp -reorder-functions=hfsort+ -split-functions -split-strategy=cdsplit -plt=all -peepholes=all -split-eh -dyno-stats -icf=1 -use-gnu-stack -use-old-text -update-debug-sections ${2} ${3} ${4}
cp ${1}.bolt ${1}
}
boptim
Expand Down

0 comments on commit eaae501

Please sign in to comment.