svn commit: r358691 - head/lib/libc/powerpc64/string
Justin Hibbits
jhibbits at FreeBSD.org
Fri Mar 6 03:46:49 UTC 2020
Author: jhibbits
Date: Fri Mar 6 03:46:48 2020
New Revision: 358691
URL: https://svnweb.freebsd.org/changeset/base/358691
Log:
powerpc/memcpy: Don't predict the src and dst will be misaligned
Predicting misalignment will pessimize the expected common case. Don't
predict true or false in thise case.
Modified:
head/lib/libc/powerpc64/string/memcpy.S
Modified: head/lib/libc/powerpc64/string/memcpy.S
==============================================================================
--- head/lib/libc/powerpc64/string/memcpy.S Fri Mar 6 02:30:04 2020 (r358690)
+++ head/lib/libc/powerpc64/string/memcpy.S Fri Mar 6 03:46:48 2020 (r358691)
@@ -58,7 +58,7 @@ ENTRY(FN_NAME)
andi. %r7, %r4, ALIGN_MASK
cmpd %r8, %r7
mr %r7, %r5
- bne+ .Lcopy_remaining_fix_index_byte
+ bne .Lcopy_remaining_fix_index_byte
mr %r8, %r3 /* save dst */
/* align src */
More information about the svn-src-all
mailing list