mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
gh-101525: Disable peephole optimization process of BOLT (gh-103187)
Co-authored-by: Dong-hee Na <donghee.na@linecorp.com>
This commit is contained in:
parent
f513d5c806
commit
a62ff97075
2 changed files with 2 additions and 2 deletions
|
@ -465,7 +465,7 @@ Optimizations
|
||||||
|
|
||||||
* Added experimental support for using the BOLT binary optimizer in the build
|
* Added experimental support for using the BOLT binary optimizer in the build
|
||||||
process, which improves performance by 1-5%.
|
process, which improves performance by 1-5%.
|
||||||
(Contributed by Kevin Modzelewski in :gh:`90536`.)
|
(Contributed by Kevin Modzelewski in :gh:`90536` and tuned by Dong-hee Na in :gh:`101525`)
|
||||||
|
|
||||||
* Speed up the regular expression substitution (functions :func:`re.sub` and
|
* Speed up the regular expression substitution (functions :func:`re.sub` and
|
||||||
:func:`re.subn` and corresponding :class:`!re.Pattern` methods) for
|
:func:`re.subn` and corresponding :class:`!re.Pattern` methods) for
|
||||||
|
|
|
@ -670,7 +670,7 @@ bolt-opt: @PREBOLT_RULE@
|
||||||
@LLVM_BOLT@ ./$(BUILDPYTHON) -instrument -instrumentation-file-append-pid -instrumentation-file=$(abspath $(BUILDPYTHON).bolt) -o $(BUILDPYTHON).bolt_inst
|
@LLVM_BOLT@ ./$(BUILDPYTHON) -instrument -instrumentation-file-append-pid -instrumentation-file=$(abspath $(BUILDPYTHON).bolt) -o $(BUILDPYTHON).bolt_inst
|
||||||
./$(BUILDPYTHON).bolt_inst $(PROFILE_TASK) || true
|
./$(BUILDPYTHON).bolt_inst $(PROFILE_TASK) || true
|
||||||
@MERGE_FDATA@ $(BUILDPYTHON).*.fdata > $(BUILDPYTHON).fdata
|
@MERGE_FDATA@ $(BUILDPYTHON).*.fdata > $(BUILDPYTHON).fdata
|
||||||
@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
|
@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
|
||||||
rm -f *.fdata
|
rm -f *.fdata
|
||||||
rm -f $(BUILDPYTHON).bolt_inst
|
rm -f $(BUILDPYTHON).bolt_inst
|
||||||
mv $(BUILDPYTHON).bolt $(BUILDPYTHON)
|
mv $(BUILDPYTHON).bolt $(BUILDPYTHON)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue