diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-08-06 01:20:57 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-08-06 01:20:57 +0000 |
commit | a5e81f1240bcc5b9b0721fc6275075ad7cadaf5e (patch) | |
tree | b973a0900efdd253dcf93719aa8c27907336f618 /lib/Analysis/BugReporter.cpp | |
parent | 6904cbb1f21002317387e8fc7b14b7f8c09d198f (diff) |
Implement lazy "copying" of structures and arrays in RegionStore. While
RegionStore already lazily abstracted the contents of arrays and structs, when
doing an assignment from one array/struct to another we did an explicit
element-wise copy, which resulted in a loss of laziness and huge performance
problem when analyzing many code bases.
Now RegionStoreManager handles such assignments using a new SVal could
'LazyCompoundSVal', which basically means the value of a given struct or array
(a MemRegion*) in a specific state (GRState). When we do a load from a field
whose encompassing struct binds to a LazyCompoundSVal, we essentially do a field
lookup in the original structure. This means we have essentially zero copying of
data for structs/arrays and everything stays lazy.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
0 files changed, 0 insertions, 0 deletions