-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add PGO support #304
Comments
Would that mean mrustc itself built using PGO, or the rustc built by mrustc using PGO? I've never worked with PGO, so cannot comment as to the ease of either - but speed isn't really the goal of mrustc, correctness is. |
Building
PGO does not affect the correctness of a program - just a performance improvement.
I suggest starting with the documentation for your compiler. E.g. for Clang the documentation is here. More materials about PGO (results, more advanced techniques like LLVM BOLT, possibly helpful notes) are here. I hope it helps. |
I'll rephrase my previous comment - My personal focus is on getting mrustc to correctly produce code, not to focus on making it fast. I wouldn't be too against someone else experimenting with PGO and seeing if it improves performance enough to be worth including. |
Since the upstream
rustc
supports PGO and clang gains benefits from PGO too I think would be a good idea to provide PGO build variant tomrustc
as well.The text was updated successfully, but these errors were encountered: