From dcfc676147a0d9c516b6891c874d0809165c1fcc Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Fri, 6 Mar 2020 03:46:48 +0000 Subject: [PATCH] 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. --- lib/libc/powerpc64/string/memcpy.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/powerpc64/string/memcpy.S b/lib/libc/powerpc64/string/memcpy.S index f88708239f4f..3e6649711382 100644 --- a/lib/libc/powerpc64/string/memcpy.S +++ b/lib/libc/powerpc64/string/memcpy.S @@ -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 */