hanchenye-llvm-project/compiler-rt
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
..
SDKs Fix typos 2014-05-15 02:22:34 +00:00
android Move Android ucontext.h out of third_party. 2014-03-18 08:32:14 +00:00
cmake Fix build on some architectures caused by r215247. 2014-08-11 19:57:56 +00:00
include [Sanitizer] Kill deprecated allocator interfaces in ASan, MSan and TSan in favor of 2014-08-12 20:28:20 +00:00
lib 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
make Fix configure+make build of profile runtime library 2014-07-10 00:53:20 +00:00
test [LSan] Parse common flags from LSAN_OPTIONS even if LSan is combined with 2014-08-18 23:39:47 +00:00
unittests [ASan] Optional support for dynamic ASan runtime on Linux. 2014-04-01 13:16:30 +00:00
www Rewrite compiler-rt.llvm.org to make it relevant 2014-02-27 14:39:48 +00:00
.arcconfig Update arc config to new domain. 2014-04-07 10:22:41 +00:00
.gitignore Add vim swap files to .gitignore 2014-03-20 19:44:33 +00:00
CMakeLists.txt Fix the CMake build when setting MACOSX_DEPLOYMENT_TARGET 2014-08-12 20:03:33 +00:00
CODE_OWNERS.TXT Add myself as a c-rt owner of ASan/Win 2014-02-27 12:07:43 +00:00
CREDITS.TXT Add Guan-Hong Liu. 2014-06-16 08:38:19 +00:00
LICENSE.TXT Move Android ucontext.h out of third_party. 2014-03-18 08:32:14 +00:00
Makefile Revert r196490 and fix include paths in makefile-based build 2013-12-05 10:40:11 +00:00
README.txt Moved the builtins documentation to lib/builtins/ 2014-05-28 23:09:45 +00:00

README.txt

Compiler-RT
================================

This directory and its subdirectories contain source code for the compiler
support routines.

Compiler-RT is open source software. You may freely distribute it under the
terms of the license agreement found in LICENSE.txt.

================================