[msan] Transform memcpy and memset to library calls.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 29 Nov 2012 12:49:04 +0000 (12:49 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 29 Nov 2012 12:49:04 +0000 (12:49 +0000)
commit2e815e7cf4f31c53ad64059192e70828d476680e
treef00947c349bc698e310ead253eebae972e77216d
parent8564dc67b5840da1633e29bade33185f4a36bb2d
[msan] Transform memcpy and memset to library calls.

This was already done for memmove, where it is required for correctness.
This change improves performance by avoiding copyingthe same memory twice.
Also, the library functions are given __msan_ prefix to prevent instcombine
pass from converting them back to intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168876 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/MemorySanitizer.cpp