mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
perf/x86: Micro-optimize nhmex_rbox_get_constraint()
Flipping the LSB doesn't require four lines of code. This shaves a few bytes of the generated code, including a branch. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Arnaldo Carvalho de Melo <acme@kernel.org> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1403183731-15402-1-git-send-email-linux@rasmusvillemoes.dk Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
985c8dcbe1
commit
2172c1f5aa
1 changed files with 1 additions and 4 deletions
|
@ -2946,10 +2946,7 @@ again:
|
|||
* extra registers. If we failed to take an extra
|
||||
* register, try the alternative.
|
||||
*/
|
||||
if (idx % 2)
|
||||
idx--;
|
||||
else
|
||||
idx++;
|
||||
idx ^= 1;
|
||||
if (idx != reg1->idx % 6) {
|
||||
if (idx == 2)
|
||||
config1 >>= 8;
|
||||
|
|
Loading…
Add table
Reference in a new issue