-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Replace the link step of codegen-units with ThinLTO #35996
Comments
cc @michaelwoerister are you interested in looking into this? |
Yes, I'm definitely interested in this. |
And also in looking into this :) |
Here's a little update on my findings so far:
I haven't looked at the C/C++ API of this in detail yet but I imagine that we would use it somewhat like this:
This is pretty much what we do now, just with steps (2), (3), and (4) inserted. I'm sure there are complications that will crop up but I don't see any conceptual obstacles. cc @alexcrichton @brson @dotdash @Aatch (who might be interested in this LLVM stuff) |
Awesome, thanks for the update @michaelwoerister! That sounds like basically exactly what I would expect. I agree that if we get some good benchmarks we can probably turn parallel codegen on by default as well! |
This has been implemented, and I've opened up #45320 to enable it by default. |
See: http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html
This is supposedly able to provide the optimization benefits of a normal release build while still enabling parallel codegen.
The text was updated successfully, but these errors were encountered: