blockfreq: Unwrap from Loops

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

<rdar://problem/14292693>

llvm-svn: 207186
This commit is contained in:
Duncan P. N. Exon Smith
2014-04-25 04:38:20 +00:00
parent 46d9a56ce6
commit 575bd8c81b

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() {