Skip to content

Commit a62ff97

Browse files
corona10Dong-hee Na
and
Dong-hee Na
authored
gh-101525: Disable peephole optimization process of BOLT (gh-103187)
Co-authored-by: Dong-hee Na <donghee.na@linecorp.com>
1 parent f513d5c commit a62ff97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/whatsnew/3.12.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ Optimizations
465465

466466
* Added experimental support for using the BOLT binary optimizer in the build
467467
process, which improves performance by 1-5%.
468-
(Contributed by Kevin Modzelewski in :gh:`90536`.)
468+
(Contributed by Kevin Modzelewski in :gh:`90536` and tuned by Dong-hee Na in :gh:`101525`)
469469

470470
* Speed up the regular expression substitution (functions :func:`re.sub` and
471471
:func:`re.subn` and corresponding :class:`!re.Pattern` methods) for

Makefile.pre.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ bolt-opt: @PREBOLT_RULE@
670670
@LLVM_BOLT@ ./$(BUILDPYTHON) -instrument -instrumentation-file-append-pid -instrumentation-file=$(abspath $(BUILDPYTHON).bolt) -o $(BUILDPYTHON).bolt_inst
671671
./$(BUILDPYTHON).bolt_inst $(PROFILE_TASK) || true
672672
@MERGE_FDATA@ $(BUILDPYTHON).*.fdata > $(BUILDPYTHON).fdata
673-
@LLVM_BOLT@ ./$(BUILDPYTHON) -o $(BUILDPYTHON).bolt -data=$(BUILDPYTHON).fdata -update-debug-sections -reorder-blocks=ext-tsp -reorder-functions=hfsort+ -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=all -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot
673+
@LLVM_BOLT@ ./$(BUILDPYTHON) -o $(BUILDPYTHON).bolt -data=$(BUILDPYTHON).fdata -update-debug-sections -reorder-blocks=ext-tsp -reorder-functions=hfsort+ -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot
674674
rm -f *.fdata
675675
rm -f $(BUILDPYTHON).bolt_inst
676676
mv $(BUILDPYTHON).bolt $(BUILDPYTHON)

0 commit comments

Comments
 (0)