[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)
commita187d6f327f3882f1925c95b7e9ac553d62d4a9f
tree6f3e0170468e6b3585867361b312a39ea6718b5a
parentafd3f07154466b8707b767bfb97ce5672a3a1f17
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254974 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/PassAnalysisSupport.h