[libc-commits] [libc] d01ae99 - Revert "[libc] Add rep; movsb as an accelerator under x86"

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Fri Oct 8 06:44:54 PDT 2021


Author: Guillaume Chatelet
Date: 2021-10-08T13:44:37Z
New Revision: d01ae990e1fd6561ed86dc8004a7147dd09fb13c

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

LOG: Revert "[libc] Add rep;movsb as an accelerator under x86"

This reverts commit 1c7160300db124468ef4a26ec55ad3d6e6527a69.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libc/src/string/memory_utils/elements_x86.h b/libc/src/string/memory_utils/elements_x86.h
index 9521e0625ab85..2873fff8b2e22 100644
--- a/libc/src/string/memory_utils/elements_x86.h
+++ b/libc/src/string/memory_utils/elements_x86.h
@@ -160,12 +160,6 @@ using _64 = __llvm_libc::Repeated<_8, 8>;
 using _128 = __llvm_libc::Repeated<_8, 16>;
 #endif
 
-struct Accelerator {
-  static void Copy(char *dst, const char *src, size_t count) {
-    asm volatile("rep movsb" : "+D"(dst), "+S"(src), "+c"(count) : : "memory");
-  }
-};
-
 } // namespace x86
 } // namespace __llvm_libc
 


        


More information about the libc-commits mailing list