x86-64: remove unnecessary spill/reload of rbx from memcpy
authorJan Beulich <jbeulich@novell.com>
Thu, 12 Mar 2009 10:47:13 +0000 (10:47 +0000)
committerIngo Molnar <mingo@elte.hu>
Thu, 12 Mar 2009 11:04:47 +0000 (12:04 +0100)
Impact: micro-optimization

This should slightly improve its performance.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
LKML-Reference: <49B8F641.76E4.0078.0@novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/lib/memcpy_64.S

index c22981fa2f3a95240f3a4c99d00da41d1b7392ec..10c067694af4630072795a125927cf413251805f 100644 (file)
@@ -33,9 +33,6 @@ ENDPROC(memcpy_c)
 ENTRY(__memcpy)
 ENTRY(memcpy)
        CFI_STARTPROC
-       pushq %rbx
-       CFI_ADJUST_CFA_OFFSET 8
-       CFI_REL_OFFSET rbx, 0
        movq %rdi,%rax
 
        movl %edx,%ecx
@@ -102,11 +99,7 @@ ENTRY(memcpy)
        jnz .Lloop_1
 
 .Lende:
-       popq %rbx
-       CFI_ADJUST_CFA_OFFSET -8
-       CFI_RESTORE rbx
        ret
-.Lfinal:
        CFI_ENDPROC
 ENDPROC(memcpy)
 ENDPROC(__memcpy)