This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug string/19776] Improve in sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S


https://sourceware.org/bugzilla/show_bug.cgi?id=19776

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Unreachable code in         |Improve in
                   |sysdeps/x86_64/multiarch/me |sysdeps/x86_64/multiarch/me
                   |mcpy-sse2-unaligned.S       |mcpy-sse2-unaligned.S

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #1)
> There are
> 
> ENTRY(__memcpy_sse2_unaligned)
>    movq  %rsi, %rax
>    leaq  (%rdx,%rdx), %rcx
>    subq  %rdi, %rax
>    subq  %rdx, %rax
>    cmpq  %rcx, %rax
>    jb L(overlapping)

Since memcpy doesn't need to check overlapping source and destination,
we can remove L(overlapping).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]