-
Notifications
You must be signed in to change notification settings - Fork 13.5k
3 x Compile time regression with Clang-17 and -inline-threshold=1000 on LLVM-git - not seen when using Clang-15 #61684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is not really actionable without a reduced test case. (Where "reduced" here means reduced to one file and a compilation command, not necessarily anything beyond that.) Though even then, I'm not sure a compiler invocation that contains |
@nikic Sorry, here is a link to my repo for the additional files needed: https://github.com/ms178/archpkgbuilds/tree/main/toolchain-experimental/llvm-git With all the information given (for editing makepkg.conf with the CFLAGS mentioned above), this should be easily reproducable on any Arch system with The optimized Clang-15 used was from: https://aur.cachyos.org/llvm-bolt-15.tar.zst |
By "single file" I meant one C/C++ file on which a significant regression can be seen. |
Sorry, I can't provide that. I am just a user, not a programmer. But if you want to know where it uses a lot of time now, it is during linking libclang. |
I've tried again without |
Closing in protest due to (https://seylaw.blogspot.com/2025/05/when-compiler-engineers-act-as-judges.html) |
@ms178 If you are unhappy with the way these issues have been handled, I would recommend taking a break from filing new issues. |
@tstellar Thanks, that is exactly what the closure of my issues is all about, showing that decisions like the one I talk about in the blog post alienate external users and are harmful to the LLVM community eventually. |
Hi, the build time of my LLVM-17-git package increased dramatically during the past several weeks with the same compile flags and config options used, but only when using Clang-17 as compiler.
When using (a super optimized LTO+PGO+BOLTed) Clang-15 to compile LLVM-17-git, the build takes around 1h 10min, but if I use my not as optimized system's Clang-17 (651b405), it just took 3h 36 min. That's more than three times slower! Recently, I have observed similar bad compile times when using an older LTO+PGO+BOLTed LLVM-17 build of mine (19f74c9) to compile LLVM-git. Some weeks ago, however, the same LTO+PGO+BOLTed LLVM-17 build used to work just as fast as the Clang-15 compiler on LLVM-git, but now it does not.
The only difference between using the fast Clang-15 and slow Clang-17, is that I use a PGO-file when using Clang-17 that is not compatible with the older Clang version.
CPU: Xeon E5-2696V3 (Haswell-EP)
RAM: 64 GB DDR3-ECC 1866
PKGBUILD.txt
The text was updated successfully, but these errors were encountered: