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