diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-25 04:38:17 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-25 04:38:17 +0000 |
commit | 3475765998020c9dcc2d70248f7f7a215c2d1a70 (patch) | |
tree | e360ddc54fa63660270097c0fb2f3363340b915d /include | |
parent | e839ab26ba6b6b4dde5d7130792bbdcb8788d087 (diff) | |
download | llvm-3475765998020c9dcc2d70248f7f7a215c2d1a70.tar.gz llvm-3475765998020c9dcc2d70248f7f7a215c2d1a70.tar.bz2 llvm-3475765998020c9dcc2d70248f7f7a215c2d1a70.tar.xz |
blockfreq: Separate unwrapLoops() from finalizeMetrics()
<rdar://problem/14292693>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/BlockFrequencyInfoImpl.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/Analysis/BlockFrequencyInfoImpl.h b/include/llvm/Analysis/BlockFrequencyInfoImpl.h index e6f08bb04e..8145663630 100644 --- a/include/llvm/Analysis/BlockFrequencyInfoImpl.h +++ b/include/llvm/Analysis/BlockFrequencyInfoImpl.h @@ -1141,10 +1141,13 @@ public: /// \brief Package up a loop. void packageLoop(LoopData &Loop); + /// \brief Unwrap loops. + void unwrapLoops(); + /// \brief Finalize frequency metrics. /// - /// Unwraps loop packages, calculates final frequencies, and cleans up - /// no-longer-needed data structures. + /// Calculates final frequencies and cleans up no-longer-needed data + /// structures. void finalizeMetrics(); /// \brief Clear all memory. @@ -1434,6 +1437,7 @@ void BlockFrequencyInfoImpl<BT>::doFunction(const FunctionT *F, // the full function. computeMassInLoops(); computeMassInFunction(); + unwrapLoops(); finalizeMetrics(); } |