blockfreq: Unwrap from Loops

When unwrapping loops, just visit the loops rather than all nodes.

<rdar://problem/14292693>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207186 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2014-04-25 04:38:20 +00:00
parent 3475765998
commit e249a45b5b

View File

@ -851,10 +851,8 @@ void BlockFrequencyInfoImplBase::unwrapLoops() {
for (size_t Index = 0; Index < Working.size(); ++Index)
Freqs[Index].Floating = Working[Index].Mass.toFloat();
for (size_t Index = 0; Index < Working.size(); ++Index) {
if (Working[Index].isLoopHeader())
unwrapLoopPackage(*this, BlockNode(Index));
}
for (const LoopData &L : Loops)
unwrapLoopPackage(*this, L.getHeader());
}
void BlockFrequencyInfoImplBase::finalizeMetrics() {