Refactor some code in SampleProfile.cpp
authorDiego Novillo <dnovillo@google.com>
Tue, 26 Nov 2013 20:37:33 +0000 (20:37 +0000)
committerDiego Novillo <dnovillo@google.com>
Tue, 26 Nov 2013 20:37:33 +0000 (20:37 +0000)
commitd0d8d6462adacedff6c57e34ee5c3b5fdc9ed71f
tree0b2db4d8ccea1973819aacdef3931854b94510dd
parentfd115c47a275c1abe731d8125ccd13fcfc05dc22
Refactor some code in SampleProfile.cpp

I'm adding new functionality in the sample profiler. This will
require more data to be kept around for each function, so I moved
the structure SampleProfile that we keep for each function into
a separate class.

There are no functional changes in this patch. It simply provides
a new home where to place all the new data that I need to propagate
weights through edges.

There are some other name and minor edits throughout.

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