diff --git a/boulder/data/macros/actions/pgo.yaml b/boulder/data/macros/actions/pgo.yaml index 769ccf05..8a113280 100644 --- a/boulder/data/macros/actions/pgo.yaml +++ b/boulder/data/macros/actions/pgo.yaml @@ -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 diff --git a/boulder/data/macros/arch/base.yaml b/boulder/data/macros/arch/base.yaml index d13e3a26..076767a8 100644 --- a/boulder/data/macros/arch/base.yaml +++ b/boulder/data/macros/arch/base.yaml @@ -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)