aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/BasicAliasAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-05 07:32:14 +0000
committerChris Lattner <sabre@nondot.org>2007-08-05 07:32:14 +0000
commitf093941458bb8560e6c38afc41ed5de5b73858e7 (patch)
tree3a77344832b30c3317ca27bc483ca7690d4e7dc8 /lib/Analysis/BasicAliasAnalysis.cpp
parent8be9adb22058a5033b0b30f6ae3eeb32eea13648 (diff)
downloadexternal_llvm-f093941458bb8560e6c38afc41ed5de5b73858e7.zip
external_llvm-f093941458bb8560e6c38afc41ed5de5b73858e7.tar.gz
external_llvm-f093941458bb8560e6c38afc41ed5de5b73858e7.tar.bz2
When clearing a SmallPtrSet, if the set had a huge capacity, but the
contents of the set were small, deallocate and shrink the set. This avoids having us to memset as much data, significantly speeding up some pathological cases. For example, this speeds up the verifier from 0.3899s to 0.0763 (5.1x) on the testcase from PR1432 in a release build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BasicAliasAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions