Commit b632a18
committed
gh-xxxx: enable BOLT optimization of libpython
Before, we only supported running BOLT on the main `python` binary.
If a shared library was in play, it wouldn't be optimized. That was
leaving a ton of optimization opportunities on the floor.
This commit adds support for running BOLT on libpython.
Functionality is disabled by default because BOLT asserts on LLVM 15,
which is the latest LLVM. I've built LLVM tip and it is able to
process libpython just fine. So it is known to work.1 parent 0deaac8 commit b632a18
3 files changed
+62
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
723 | | - | |
| 723 | + | |
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
736 | | - | |
737 | 735 | | |
738 | 736 | | |
739 | 737 | | |
| |||
751 | 749 | | |
752 | 750 | | |
753 | 751 | | |
754 | | - | |
755 | | - | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
756 | 755 | | |
757 | | - | |
| 756 | + | |
| 757 | + | |
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | | - | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
762 | 765 | | |
763 | 766 | | |
764 | 767 | | |
765 | | - | |
| 768 | + | |
766 | 769 | | |
767 | 770 | | |
768 | 771 | | |
769 | | - | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
770 | 775 | | |
771 | 776 | | |
772 | 777 | | |
773 | | - | |
774 | | - | |
775 | | - | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
776 | 782 | | |
777 | 783 | | |
778 | 784 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2083 | 2083 | | |
2084 | 2084 | | |
2085 | 2085 | | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
2086 | 2103 | | |
2087 | 2104 | | |
2088 | 2105 | | |
| |||
0 commit comments