diff options
author | Kostya Serebryany <kcc@google.com> | 2013-10-16 14:06:14 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-10-16 14:06:14 +0000 |
commit | d3d23bec66de349522544d8d5510ac54d8b95e40 (patch) | |
tree | 6aea3d3e1ce79c0fd9e1494dd591e81cd21fd6d4 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | 442c4e4b1adca5cb92652c502c07c03c900b88e7 (diff) | |
download | bcm5719-llvm-d3d23bec66de349522544d8d5510ac54d8b95e40.tar.gz bcm5719-llvm-d3d23bec66de349522544d8d5510ac54d8b95e40.zip |
[asan] Optimize accesses to global arrays with constant index
Summary:
Given a global array G[N], which is declared in this CU and has static initializer
avoid instrumenting accesses like G[i], where 'i' is a constant and 0<=i<N.
Also add a bit of stats.
This eliminates ~1% of instrumentations on SPEC2006
and also partially helps when asan is being run together with coverage.
Reviewers: samsonov
Reviewed By: samsonov
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1947
llvm-svn: 192794
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions