Commit dd1ef4ec authored by Jan Beulich's avatar Jan Beulich Committed by Ingo Molnar

x86-64: remove unnecessary spill/reload of rbx from memcpy

Impact: micro-optimization

This should slightly improve its performance.
Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
LKML-Reference: <49B8F641.76E4.0078.0@novell.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent c2810188
...@@ -33,9 +33,6 @@ ENDPROC(memcpy_c) ...@@ -33,9 +33,6 @@ ENDPROC(memcpy_c)
ENTRY(__memcpy) ENTRY(__memcpy)
ENTRY(memcpy) ENTRY(memcpy)
CFI_STARTPROC CFI_STARTPROC
pushq %rbx
CFI_ADJUST_CFA_OFFSET 8
CFI_REL_OFFSET rbx, 0
movq %rdi,%rax movq %rdi,%rax
movl %edx,%ecx movl %edx,%ecx
...@@ -102,11 +99,7 @@ ENTRY(memcpy) ...@@ -102,11 +99,7 @@ ENTRY(memcpy)
jnz .Lloop_1 jnz .Lloop_1
.Lende: .Lende:
popq %rbx
CFI_ADJUST_CFA_OFFSET -8
CFI_RESTORE rbx
ret ret
.Lfinal:
CFI_ENDPROC CFI_ENDPROC
ENDPROC(memcpy) ENDPROC(memcpy)
ENDPROC(__memcpy) ENDPROC(__memcpy)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment