From: George Dunlap <george.dunlap@eu.citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH 0/2] Improvements with noreturn
Date: Mon, 25 Nov 2013 14:46:38 +0000 [thread overview]
Message-ID: <529362CE.4020208@eu.citrix.com> (raw)
In-Reply-To: <52935861.40704@citrix.com>
On 11/25/2013 02:02 PM, Andrew Cooper wrote:
> On 25/11/13 11:47, George Dunlap wrote:
>> On Mon, Nov 25, 2013 at 10:25 AM, Andrew Cooper
>> <andrew.cooper3@citrix.com> wrote:
>>> Make better use of noreturn. It allows optimising compilers to produce more
>>> efficient code.
>>>
>>> George:
>>> I request that this is included for 4.4 - It is no functional change, but
>>> quite a nice improvement in terms of code size.
>> No functional change *if compilers are correct*. If they're not, for
>> any reason, it will be very difficult to actually catch between now
>> and the release.
>>
>> I'm not inclined to think that a reduction of 6k is a big enough
>> improvement to take the risk at this point.
>>
>> -George
> Patch 1 is literally just textual replacement, cleaning up its current
> uses in the codebase.
>
> Patch 2 applies its use to more functions in the codebase.
>
> While I agree that it is "No functional change if compilers are
> correct", this kind of paranoia could be applied to any and every patch
> we consider taking. Anyway, Linux uses it far more than we do at the
> moment.
But what we're talking about here isn't just changing normal code flow
or what-not; we're talking about a fairly niche optimization being
applied to functions were it wasn't applied before. I would be willing
to bet that "noreturn" has two or three orders of magnitude less usage
and testing than anything in the "normal" C standard; that's why I
consider it to be a higher risk than a patch which changes code in a
"normal" way.
Now sure, it's a fairly tiny risk, but the benefit is pretty tiny too.
At the moment I don't see a good reason this can't wait until 4.5.
-George
next prev parent reply other threads:[~2013-11-25 14:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 10:25 [PATCH 0/2] Improvements with noreturn Andrew Cooper
2013-11-25 10:25 ` [PATCH 1/2] xen/compiler: Replace opencoded __attribute__((noreturn)) Andrew Cooper
2013-11-25 10:31 ` Ian Campbell
2013-11-25 10:45 ` Tim Deegan
2013-11-25 10:57 ` Jan Beulich
2013-11-25 10:25 ` [PATCH 2/2] xen: Identify panic and reboot/halt functions as noreturn Andrew Cooper
2013-11-25 10:34 ` Ian Campbell
2013-11-25 10:37 ` Andrew Cooper
2013-11-25 10:45 ` Tim Deegan
2013-11-25 11:47 ` [PATCH 0/2] Improvements with noreturn George Dunlap
2013-11-25 14:02 ` Andrew Cooper
2013-11-25 14:46 ` George Dunlap [this message]
2013-11-25 14:50 ` Andrew Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=529362CE.4020208@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.