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 | 3386d252579ea00d0fc26a3ba7874bec25ce4516 (patch) | |
| tree | c7d6ce42f1c7ff9409df701e97ed4c54d22eeda3 /lib/Bitcode/Reader | |
| parent | d77a7669ec1a6bba7e45791b1aa1e65a603dda92 (diff) | |
| download | llvm-3386d252579ea00d0fc26a3ba7874bec25ce4516.tar.gz llvm-3386d252579ea00d0fc26a3ba7874bec25ce4516.tar.bz2 llvm-3386d252579ea00d0fc26a3ba7874bec25ce4516.tar.xz | |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader')
0 files changed, 0 insertions, 0 deletions
