On Thu, Oct 31, 2024 at 07:14:08PM +0100, Kilian Hanich via devel wrote:
> While we are at it, please don't mix -O2 and -O3 while compiling the
> same program.
> 
> This can break things and is really not fun to debug (and that's also
> the reason why a lot of buildsystems don't support that).

It works just fine, one can actually do it even in a single file, this
function is -O3, this is -O2, etc.
And effectively PGO is all about that, this function or basic block is
hot, more optimization which could increase size and likely improve
performance are done on it, this is cold, do other optimizations on it.

        Jakub

-- 
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to