[LazyValueInfo] Stop inserting overdefined values into ValueCache to
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 11 Dec 2015 00:49:47 +0000 (00:49 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 11 Dec 2015 00:49:47 +0000 (00:49 +0000)
commit283d7ebfd0a9ebe6cf7782530728d725b21eb9a8
treec882cbbe94dcc857566514027e61adc92a99e4e2
parent9a3d083ea53b0f155cbe5e049883a3730b103256
[LazyValueInfo] Stop inserting overdefined values into ValueCache to
reduce memory usage.

Previously, LazyValueInfoCache inserted overdefined lattice values into
both ValueCache and OverDefinedCache. This wasn't necessary and was
causing LazyValueInfo to use an excessive amount of memory in some cases.

This patch changes LazyValueInfoCache to insert overdefined values only
into OverDefinedCache. The memory usage decreases by 70 to 75% when one
of the files in llvm is compiled.

rdar://problem/11388615

Differential revision: http://reviews.llvm.org/D15391

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255320 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LazyValueInfo.cpp