On 09/06/2012 02:56 AM, Zhenqiang Chen wrote: > + (3) Keep its original order when there is no chance to fall through. bbro > + bases on the result of cfg_cleanup, which does lots of optimizations on > cfg. > + So the order is expected to be kept if no fall through.
Thanks for doing this. Our kernel guys have been asking for something like this for quite a while. I am curious about the case of no fall through. Especially about using that opportunity to sort cold blocks to the end of the function. I'm thinking here of stuff like switch with a default: abort(), or asm goto with an explicitly annotated cold path. r~