python-build-standalone icon indicating copy to clipboard operation
python-build-standalone copied to clipboard

Upgrade to LLVM 20.1.0

Open indygreg opened this issue 8 months ago • 2 comments
trafficstars

I just published an LLVM 20.1.0 toolchain with some computed gotos patches to hopefully improve performance of CPython.

https://github.com/indygreg/toolchain-tools/releases/tag/toolchain-bootstrap%2F20250308

One of the patches changes codegen to fix a regression in LLVM 19.

The other enables bolt to work with computed gotos. To take full advantage of this functionality we patch CPython configure to remove some --skip-funcs which are no longer required.

indygreg avatar Mar 09 '25 07:03 indygreg

Oh, the new toolchain release is marked as a pre-release for the moment since I haven't tested them. (This PR can be the test!) I also noticed the archives are significantly larger. I'd like to investigate that before removing the pre-release flag. Maybe tomorrow...

indygreg avatar Mar 09 '25 07:03 indygreg

I did a quick audit of the LLVM distribution bloat. Looks mostly organic.

I removed the pre-release label from the release. I'm comfortable landing this if you are.

indygreg avatar Mar 10 '25 03:03 indygreg

Great thanks for following up.

zanieb avatar Mar 11 '25 14:03 zanieb

Thanks for merging this regression-fix swiftly! 👍🏻

Is the branch indygreg/no-plt unnecessary?

bsdice avatar Mar 11 '25 14:03 bsdice

Changes to PLT and symbol binding need to be considered separately and deliberately. I published the branch so others can conduct performance analysis.

indygreg avatar Mar 11 '25 15:03 indygreg