[PATCH] D26358: [scudo] 32-bit and hardware agnostic support
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 28 15:40:34 PST 2016
cryptoad updated this revision to Diff 79468.
cryptoad added a comment.
After internal discussions, extend a bit this patch with regard to SSE 4.2
We changed the SSE 4.2 logic to no longer be required, but be optional.
We now check if -msse4.2 is supported by the compiler, and emit the hardware
optimized CRC32 code if it is (-msse4.2 was compulsory before). At runtime, we
check for CPU support.
This introduces a couple of ifdef in the checkum function, gets rid of the
/proc/cpuinfo cmake test.
This would allow the allocator to run on a wider range of hardware.
https://reviews.llvm.org/D26358
Files:
cmake/config-ix.cmake
lib/scudo/CMakeLists.txt
lib/scudo/scudo_allocator.cpp
lib/scudo/scudo_allocator.h
lib/scudo/scudo_allocator_secondary.h
lib/scudo/scudo_flags.cpp
lib/scudo/scudo_flags.h
lib/scudo/scudo_interceptors.cpp
lib/scudo/scudo_new_delete.cpp
lib/scudo/scudo_termination.cpp
lib/scudo/scudo_utils.cpp
lib/scudo/scudo_utils.h
test/scudo/CMakeLists.txt
test/scudo/alignment.cpp
test/scudo/double-free.cpp
test/scudo/interface.cpp
test/scudo/lit.cfg
test/scudo/lit.site.cfg.in
test/scudo/malloc.cpp
test/scudo/memalign.cpp
test/scudo/mismatch.cpp
test/scudo/overflow.cpp
test/scudo/preinit.cpp
test/scudo/random_shuffle.cpp
test/scudo/realloc.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26358.79468.patch
Type: text/x-patch
Size: 49658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161128/b3e5ef70/attachment.bin>
More information about the llvm-commits
mailing list