[PATCH] D15391: [LazyValueInfo] Reduce memory usage

Akira Hatanaka via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 9 12:02:45 PST 2015


ahatanak created this revision.
ahatanak added a subscriber: llvm-commits.

When the lattice value of a value is overdefined, LazyValueInfoCache inserts the lattice value into LazyValueInfoCache::ValueCache in addition to inserting it into OverDefinedCache. This isn't necessary and causes LazyValueInfo to use an excessive amount of memory in some cases.

This patch attempts to reduce memory usage of LazyValueInfo by avoiding inserting entries into LazyValueInfoCache::ValueCache when the lattice value type is overdefined. The memory usage decreases by 70 to 75% (from 1.5GB to 400MB) when I build one of the files in llvm.

http://reviews.llvm.org/D15391

Files:
  lib/Analysis/LazyValueInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15391.42325.patch
Type: text/x-patch
Size: 3909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151209/ebfd3041/attachment.bin>


More information about the llvm-commits mailing list