diff options
| author | Pavel Labath <labath@google.com> | 2013-08-19 15:23:34 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2013-08-19 15:23:34 +0000 |
| commit | d207f55cd58054aab77edca35b3e7f645738dfe2 (patch) | |
| tree | 118aa716503aa2820e587c158538bd63c427bcc6 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | f064ad5beaaa133752135456b33ded1c18b5d918 (diff) | |
| download | clang-d207f55cd58054aab77edca35b3e7f645738dfe2.tar.gz clang-d207f55cd58054aab77edca35b3e7f645738dfe2.tar.bz2 clang-d207f55cd58054aab77edca35b3e7f645738dfe2.tar.xz | |
[analyzer] Fix inefficiency in dead symbol removal
Summary:
ScanReachableSymbols uses a "visited" set to avoid scanning the same object
twice. However, it did not use the optimization for LazyCompoundVal objects,
which resulted in exponential complexity for long chains of temporary objects.
Adding this resulted in a decrease of analysis time from >3h to 3 seconds for
some files.
Reviewers: jordan_rose
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1398
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
