diff options
author | Jan Beulich <jbeulich@novell.com> | 2009-03-12 06:47:13 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-12 07:04:47 -0400 |
commit | dd1ef4ec4721ddc0a1f2b73a4f67930cb320665c (patch) | |
tree | 75cdd414ecdcfe7d2abc72da8444f54631a00e4e /arch/x86/lib | |
parent | c2810188c1b810c68139608a207befae0a4f1e69 (diff) |
x86-64: remove unnecessary spill/reload of rbx from memcpy
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>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/memcpy_64.S | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/x86/lib/memcpy_64.S b/arch/x86/lib/memcpy_64.S index c22981fa2f3a..10c067694af4 100644 --- a/arch/x86/lib/memcpy_64.S +++ b/arch/x86/lib/memcpy_64.S | |||
@@ -33,9 +33,6 @@ ENDPROC(memcpy_c) | |||
33 | ENTRY(__memcpy) | 33 | ENTRY(__memcpy) |
34 | ENTRY(memcpy) | 34 | ENTRY(memcpy) |
35 | CFI_STARTPROC | 35 | CFI_STARTPROC |
36 | pushq %rbx | ||
37 | CFI_ADJUST_CFA_OFFSET 8 | ||
38 | CFI_REL_OFFSET rbx, 0 | ||
39 | movq %rdi,%rax | 36 | movq %rdi,%rax |
40 | 37 | ||
41 | movl %edx,%ecx | 38 | movl %edx,%ecx |
@@ -102,11 +99,7 @@ ENTRY(memcpy) | |||
102 | jnz .Lloop_1 | 99 | jnz .Lloop_1 |
103 | 100 | ||
104 | .Lende: | 101 | .Lende: |
105 | popq %rbx | ||
106 | CFI_ADJUST_CFA_OFFSET -8 | ||
107 | CFI_RESTORE rbx | ||
108 | ret | 102 | ret |
109 | .Lfinal: | ||
110 | CFI_ENDPROC | 103 | CFI_ENDPROC |
111 | ENDPROC(memcpy) | 104 | ENDPROC(memcpy) |
112 | ENDPROC(__memcpy) | 105 | ENDPROC(__memcpy) |