Re: Bad inlining because of "throw"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Fine <johnsfine@xxxxxxxxxxx> writes:

> Having the branch predictor know which path is likely ought to at
> least help branch prediction.  A really smart optimizer would
> de-inline the cold blocks of an inlined function.  I doubt that GCC is
> that sophisticated, but maybe it is worth trying it and looking at the
> generated code.

That is what the -freorder-blocks-and-partition option does.  That
option does have some limitations, and is not the default at any
optimization level.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux