Skip to content

Commit

Permalink
rc.yml: Update bolt optimization flags
Browse files Browse the repository at this point in the history
- Keep debug info now dwarf 5 is properly supported
- use non-deprecated options
- enable peephole and frame-opt optimizations
  • Loading branch information
joebonrichie committed Jun 6, 2024
1 parent e231448 commit 183e07a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ypkg2/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,20 @@ actions:
# Apply bolt profile
- bolt_opt: |
boptim(){
llvm-bolt ${1}.orig -o ${1}.bolt -data=$PKG_BUILD_DIR/BOLT/final/$(basename ${1}).fdata -reorder-blocks=cache+ -reorder-functions=hfsort+ -split-functions=3 -split-all-cold -split-eh -dyno-stats -icf=1 -use-gnu-stack -use-old-text ${2} ${3} ${4}
llvm-bolt ${1}.orig -o ${1}.bolt -data=$PKG_BUILD_DIR/BOLT/final/$(basename ${1}).fdata \
-update-debug-sections \
-deterministic-debuginfo \
-reorder-blocks=ext-tsp \
-reorder-functions=hfsort+ \
-split-functions \
-split-all-cold \
-split-eh \
-dyno-stats \
-icf=1 \
-use-gnu-stack \
-peepholes=all \
-frame-opt=hot \
-use-old-text ${2} ${3} ${4}
cp ${1}.bolt ${1}
}
boptim
Expand Down

0 comments on commit 183e07a

Please sign in to comment.