hanchenye-llvm-project/compiler-rt/lib
Peter Collingbourne 82ff058cf9 DFSan's set label function should avoid writing to the shadow memory when the write would not change the value in memory.
When writing a label to shadow memory, don't write if the value is already set to the value being written.  This dramatically reduces real memory consumption in programs with sparse use of labels.

Test Plan: It would be nice to test that unnecessary writes are skipped, but I do not see how a unit test could do this.

Patch by Sam Kerner!

Differential Revision: http://reviews.llvm.org/D4894

llvm-svn: 215961
2014-08-19 01:47:33 +00:00
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan [LSan] Parse common flags from LSAN_OPTIONS even if LSan is combined with 2014-08-18 23:39:47 +00:00
builtins builtins: add signature to some assembly routines 2014-08-09 20:17:43 +00:00
dfsan DFSan's set label function should avoid writing to the shadow memory when the write would not change the value in memory. 2014-08-19 01:47:33 +00:00
interception [ASan/Win] Remove one more reference to __interception::GetRealFunctionAddress (follow-up to r215707) 2014-08-15 15:41:03 +00:00
lsan [LSan] Parse common flags from LSAN_OPTIONS even if LSan is combined with 2014-08-18 23:39:47 +00:00
msan [MSan] Disable coredump for 64-bit binaries. 2014-08-12 22:37:47 +00:00
msandr [msandr] Access app TLS directly in native exec mode. 2014-01-20 13:09:29 +00:00
profile profile: Improve error messages on bad GCDA files 2014-08-18 20:47:32 +00:00
sanitizer_common sanitizer_printf.cc: guard the va_copy hack on _MSC_VER 2014-08-18 20:23:16 +00:00
tsan [TSan] Initialize flags as early as possible. Disables back coredump, accidentally enabled in r215479. Add a test. 2014-08-15 19:53:51 +00:00
ubsan [UBSan] Add returns-nonnull sanitizer. 2014-08-13 00:26:40 +00:00
CMakeLists.txt Fix build on some architectures caused by r215247. 2014-08-11 19:57:56 +00:00
Makefile.mk Move original compiler-rt functions (libgcc replacement) to lib/builtins directory 2014-02-14 09:20:33 +00:00