]> granicus.if.org Git - clang/commit
[analyzer] Cache offset computation for MemRegion
authorGeorge Karpenkov <ekarpenkov@apple.com>
Sat, 31 Mar 2018 01:20:07 +0000 (01:20 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Sat, 31 Mar 2018 01:20:07 +0000 (01:20 +0000)
commitac0a256e8571131b60958cc8ce01a53c9f56d180
tree3433f902b6f6c81284d497c3c38eaffa11479229
parentf52aaa622a81f30329b46748da108fccd134ffc4
[analyzer] Cache offset computation for MemRegion

Achieves almost a 200% speedup on the example where the performance of
visitors was problematic.

Performance on sqlite3 is unaffected.

rdar://38818362

Differential Revision: https://reviews.llvm.org/D45113

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328911 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
lib/StaticAnalyzer/Core/MemRegion.cpp