SamplePGO - Clear per-function data after applying a profile.
authorDiego Novillo <dnovillo@google.com>
Wed, 28 Oct 2015 17:40:22 +0000 (17:40 +0000)
committerDiego Novillo <dnovillo@google.com>
Wed, 28 Oct 2015 17:40:22 +0000 (17:40 +0000)
commitea4e018fba779d25562e49e9d7f638940e6b8c68
treec3bafc94a2f1fd81af703a38e30a223a18c117c8
parent0cacb9ef06ca2ddc111163d6c7cd17e6f74b7853
SamplePGO - Clear per-function data after applying a profile.

The pass was keeping around a lot of per-function data (visited blocks,
edges, dominance, etc) that is just taking up memory for no reason. In
fact, from function to function it could potentially confuse the
propagator since some maps are indexed by line offsets which can be
common between functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251531 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SampleProfile.cpp