mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-09 05:31:19 +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:
parent
3475765998
commit
e249a45b5b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user