lkml.org 
[lkml]   [2015]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] x86: entry.S: tidy up several suboptimal insns

* Steven Rostedt <rostedt@goodmis.org> wrote:

> > That would require a branch insn. The whole idea of
> > masking was merely to avoid that branch. If you need a
> > branch, then you can as well just retain current code.
>
> I'm just curious, do all these micro optimizations have
> any real impact on real use cases?

The bona fide removal of a real instruction from a true hot
path is generally always worth doing, you don't even have
to 'prove' that it improves things: unless the claim is
that for some really robust reason the instruction was zero
cost to begin with.

So the main question here is not whether it's worth doing
it, the question is the cost of the removal:

- the change in syscall number overflow handling
behavior. (We might not want the new behavior)

- the increase in the syscall table size.

Thanks,

Ingo


\
 
 \ /
  Last update: 2015-02-26 13:21    [W:0.468 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site