OSDN Git Service

Reduce memory usage in GVN
authorDavid Brazdil <dbrazdil@google.com>
Wed, 20 Apr 2016 13:24:12 +0000 (14:24 +0100)
committerDavid Brazdil <dbrazdil@google.com>
Thu, 21 Apr 2016 08:23:04 +0000 (09:23 +0100)
commitcc857cfbe4a179dfa7935b7334f1efbb21f2ac76
treeba71a0603c98f09d31fa9b63d91544b8d0927ccf
parent9d7c524c9bd603b1df9e88132f7ea4d59dab44a3
Reduce memory usage in GVN

Implement recycling of ValueSet data structures which the GVN
algorithm will not access any more.

Savings depend on the shape of the graph, but can be as high as 93%.
Peak memory usage for GSA drops from 32MB to 26MB, compile times seem
unaffected.

Bug: 28173563
Bug: 28287086

Change-Id: If227177449bc90ad24fa68c37b0c2615924af1ed
compiler/optimizing/gvn.cc