]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101525: Disable peephole optimization process of BOLT (gh-103187)
authorDong-hee Na <donghee.na@python.org>
Wed, 5 Apr 2023 00:10:45 +0000 (09:10 +0900)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2023 00:10:45 +0000 (09:10 +0900)
Co-authored-by: Dong-hee Na <donghee.na@linecorp.com>
Doc/whatsnew/3.12.rst
Makefile.pre.in

index cc2c0560a57c85e703d16ce4e12cfd6a69f2921c..23524ec5d7d452533507307626aaf6a09503557b 100644 (file)
@@ -465,7 +465,7 @@ Optimizations
 
 * Added experimental support for using the BOLT binary optimizer in the build
   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
   :func:`re.subn` and corresponding :class:`!re.Pattern` methods) for
index b97daaf6f445cc12380d12b5d9ee3ee0dddd47d8..9fdbd8db19bb330cd2e1c5b8af0b473c69b8d6f5 100644 (file)
@@ -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
        ./$(BUILDPYTHON).bolt_inst $(PROFILE_TASK) || true
        @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 $(BUILDPYTHON).bolt_inst
        mv $(BUILDPYTHON).bolt $(BUILDPYTHON)