[PATCH] D15391: [LazyValueInfo] Reduce memory usage
    Akira Hatanaka via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Dec  9 19:21:04 PST 2015
    
    
  
ahatanak added a comment.
I tried compiling Transforms.cpp of r152020, but unfortunately clang (r255133) didn't exhibit an excessive memory usage (perhaps because some of the header files changed).
It seems that a large number of values are inserted into ValueCache because of the way LazyValueInfoCache gets the lattice value for a (basic block, value) pair. When LazyValueInfoCache needs a lattice value, it recursively visits the basic block's predecessors (it emulates recursion using a stack) until it gets an answer and inserts lattice values for all basic blocks that were visited.
http://reviews.llvm.org/D15391
    
    
More information about the llvm-commits
mailing list