diff options
author | Anna Zaks <ganna@apple.com> | 2015-02-27 03:12:36 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2015-02-27 03:12:36 +0000 |
commit | 8ed1d8196bef89c3099be4ce4aa65f613ab819cc (patch) | |
tree | 578f2500990fe32e26b2299a769d620fffee45e4 /clang/lib/Serialization/ASTWriter.cpp | |
parent | 2249049db2d0341a037da92c25f141db7ceea6d8 (diff) | |
download | bcm5719-llvm-8ed1d8196bef89c3099be4ce4aa65f613ab819cc.tar.gz bcm5719-llvm-8ed1d8196bef89c3099be4ce4aa65f613ab819cc.zip |
[asan] Skip promotable allocas to improve performance at -O0
Currently, the ASan executables built with -O0 are unnecessarily slow.
The main reason is that ASan instrumentation pass inserts redundant
checks around promotable allocas. These allocas do not get instrumented
under -O1 because they get converted to virtual registered by mem2reg.
With this patch, ASan instrumentation pass will only instrument non
promotable allocas, giving us a speedup of 39% on a collection of
benchmarks with -O0. (There is no measurable speedup at -O1.)
llvm-svn: 230724
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
0 files changed, 0 insertions, 0 deletions