mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 01:25:49 +00:00
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:
@@ -851,10 +851,8 @@ void BlockFrequencyInfoImplBase::unwrapLoops() {
|
|||||||
for (size_t Index = 0; Index < Working.size(); ++Index)
|
for (size_t Index = 0; Index < Working.size(); ++Index)
|
||||||
Freqs[Index].Floating = Working[Index].Mass.toFloat();
|
Freqs[Index].Floating = Working[Index].Mass.toFloat();
|
||||||
|
|
||||||
for (size_t Index = 0; Index < Working.size(); ++Index) {
|
for (const LoopData &L : Loops)
|
||||||
if (Working[Index].isLoopHeader())
|
unwrapLoopPackage(*this, L.getHeader());
|
||||||
unwrapLoopPackage(*this, BlockNode(Index));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BlockFrequencyInfoImplBase::finalizeMetrics() {
|
void BlockFrequencyInfoImplBase::finalizeMetrics() {
|
||||||
|
Reference in New Issue
Block a user