[libc-commits] [libc] 83457d3 - [libc] dedup handling of size 4 for memset

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Mon Aug 16 15:30:41 PDT 2021


Author: Guillaume Chatelet
Date: 2021-08-16T22:29:10Z
New Revision: 83457d398df15a2688bab72a9b658779e51efbe2

URL: https://github.com/llvm/llvm-project/commit/83457d398df15a2688bab72a9b658779e51efbe2
DIFF: https://github.com/llvm/llvm-project/commit/83457d398df15a2688bab72a9b658779e51efbe2.diff

LOG: [libc] dedup handling of size 4 for memset

Added: 
    

Modified: 
    libc/src/string/memory_utils/memset_utils.h

Removed: 
    


################################################################################
diff  --git a/libc/src/string/memory_utils/memset_utils.h b/libc/src/string/memory_utils/memset_utils.h
index be1048a9be03..5b955a3e30b1 100644
--- a/libc/src/string/memory_utils/memset_utils.h
+++ b/libc/src/string/memory_utils/memset_utils.h
@@ -63,8 +63,6 @@ inline static void GeneralPurposeMemset(char *dst, unsigned char value,
     return SplatSet<_2>(dst, value);
   if (count == 3)
     return SplatSet<_3>(dst, value);
-  if (count == 4)
-    return SplatSet<_4>(dst, value);
   if (count <= 8)
     return SplatSet<HeadTail<_4>>(dst, value, count);
   if (count <= 16)


        


More information about the libc-commits mailing list