lkml.org 
[lkml]   [2009]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/4] jump label patches
On 10/06/2009 05:14 PM, Roland McGrath wrote:
> Kernel builds usually use -Os. Is there anything else we can do now (4.4)
> to influence this placement (while keeping the unlikely target block inside
> a scope, i.e. macro, with the asm goto)?

I think -Os includes -freorder-blocks as well.

> if (0) yes: maybe = 1;

Anything with "if (0)" in it (even with __builtin_expect) is going to be
folded away too early to be useful.

I can't think of any way to manipulate block placement from the source
level at this time that doesn't add more code along the fast path,
obviating the asm goto.


r~


\
 
 \ /
  Last update: 2009-10-07 17:49    [W:0.073 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site