[PassManager] Tuning Memory Usage of AnalysisUsage
authorPhilip Reames <listmail@philipreames.com>
Tue, 8 Dec 2015 00:10:56 +0000 (00:10 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 8 Dec 2015 00:10:56 +0000 (00:10 +0000)
commit5ae3418ffecc754a72d5b71bf9d5c8bc95cde70a
tree732448217cfadf2981ce56514b030cfce45d4819
parent3f5d2bc0bc9853c974850e824f091ddd8ea675bf
[PassManager] Tuning Memory Usage of AnalysisUsage

We were using unneccessarily large initial sizes for these SmallVectors.  This was wasting around 50kb of memory for the O3 pipeline, even after the uniquing changes.  We're still using around 20kb which is a bit much, but it's definitely better.  This is about a 6% improvement in total O3 memory usage.

Note: The raw data on structure size which were used to pick these thresholds can be found in the review thread.

Differential Revision: http://reviews.llvm.org/D15244

llvm-svn: 254974
llvm/include/llvm/PassAnalysisSupport.h