summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit44f7d3aa0b98e42b531126b36db8ab00dcf99b4c (patch)
tree1ba4959ca45ffd79b1f1c7956a12427f03bd881a /llvm/lib/Analysis/BasicAliasAnalysis.cpp
parent04e8bc8e352fd00757f472d50d882dd69dc139c3 (diff)
downloadbcm5719-llvm-44f7d3aa0b98e42b531126b36db8ab00dcf99b4c.tar.gz
bcm5719-llvm-44f7d3aa0b98e42b531126b36db8ab00dcf99b4c.zip
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. llvm-svn: 40837
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud