]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Change the replacement for memcpy to a vectorised version that does
authorJulian Seward <jseward@acm.org>
Tue, 24 Aug 2010 09:05:52 +0000 (09:05 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 24 Aug 2010 09:05:52 +0000 (09:05 +0000)
commitd866af8d34594544c61d1702e9f701b71465e210
tree455eb71b7dc1505f438cb4a4eb7dcbd34d8771e0
parentf3a7b3a8b9ddab5eec3e802a90ae9184781cc4cd
Change the replacement for memcpy to a vectorised version that does
word copies whenever possible.  This drastically reduces the number of
memory references Memcheck has to process and speeds up a test program
that does repeated memcpys of large blocks by a factor of 4 or more.
Also add a vectorised version of memset.

The memcpy version is also constructed with a view to be used in
exp-ptrcheck, so it can copy areas of memory without losing
pointer-identity shadow data, as happens when doing all copies at a
byte granularity.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11288
memcheck/mc_replace_strmem.c