Skip to content
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

Can the compiled compiler be optimized by PGO? #29

Open
pomelohan opened this issue May 13, 2024 · 5 comments
Open

Can the compiled compiler be optimized by PGO? #29

pomelohan opened this issue May 13, 2024 · 5 comments

Comments

@pomelohan
Copy link

Like ClangBuiltLinux, it divided two stages to optimize the compiler by PGO. Can we do this cool thing for GCC?

@mvaisakh
Copy link
Owner

Like ClangBuiltLinux, it divided two stages to optimize the compiler by PGO. Can we do this cool thing for GCC?

Hi
It can be done but the workflow will be much longer and complex.

I'll have to chart out the stress tests, create profiles, store the profile, get them into workflow and then use these profiles for building gcc.

Might give it a try when I have time.

@pomelohan
Copy link
Author

Like ClangBuiltLinux, it divided two stages to optimize the compiler by PGO. Can we do this cool thing for GCC?

Hi It can be done but the workflow will be much longer and complex.

I'll have to chart out the stress tests, create profiles, store the profile, get them into workflow and then use these profiles for building gcc.

Might give it a try when I have time.

😃 Thanks for your hard work, waiting for your good news!

@Panchajanya1999
Copy link
Contributor

Like ClangBuiltLinux, it divided two stages to optimize the compiler by PGO. Can we do this cool thing for GCC?

Hi It can be done but the workflow will be much longer and complex.

I'll have to chart out the stress tests, create profiles, store the profile, get them into workflow and then use these profiles for building gcc.

Might give it a try when I have time.

Are there any real time benefits from PGO in compilation of Android Kernel?
I mean it's pretty cool to get PGO but is it really sensible?

@mvaisakh
Copy link
Owner

Like ClangBuiltLinux, it divided two stages to optimize the compiler by PGO. Can we do this cool thing for GCC?

Hi It can be done but the workflow will be much longer and complex.
I'll have to chart out the stress tests, create profiles, store the profile, get them into workflow and then use these profiles for building gcc.
Might give it a try when I have time.

Are there any real time benefits from PGO in compilation of Android Kernel? I mean it's pretty cool to get PGO but is it really sensible?

In Android kernels, synthetic benchmarks yielded very little difference but the overall real life experience improved when I used PGO on my kernel.
But here the discussion is about compiler being compiled with PGO and frankly I'm not sure how the results are going to be.

@pomelohan
Copy link
Author

Like ClangBuiltLinux, it divided two stages to optimize the compiler by PGO. Can we do this cool thing for GCC?

Hi It can be done but the workflow will be much longer and complex.
I'll have to chart out the stress tests, create profiles, store the profile, get them into workflow and then use these profiles for building gcc.
Might give it a try when I have time.

Are there any real time benefits from PGO in compilation of Android Kernel? I mean it's pretty cool to get PGO but is it really sensible?

Practice leads to true knowledge, at least after having the PGO version, the one can compare the differences with the original version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants