Skip to content

Commit

Permalink
Merge pull request #361 from serpent-os/boulder-bolt-flags
Browse files Browse the repository at this point in the history
boulder/data: Ensure split-machine-functions are disabled in bolt flags
  • Loading branch information
ikeycode authored Nov 8, 2024
2 parents c9eece2 + eaae501 commit 7fa122b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions 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
2 changes: 2 additions & 0 deletions boulder/data/macros/arch/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ flags :
cxx : "-fno-reorder-blocks-and-partition​"
ld : "-Wl,-q"
llvm:
c : "-fno-split-machine-functions"
cxx : "-fno-split-machine-functions"
ld : "-Wl,-q"

# Toggle -fcommon (OFF)
Expand Down

0 comments on commit 7fa122b

Please sign in to comment.