summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-25 04:38:09 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-25 04:38:09 +0000
commit1cab8a070837053b2335b50ab0fd61cd34b0fc6b (patch)
tree58ff786a6289f0222c40bd81099c03f3a47e45fb /llvm/lib
parent39cc64827e8c6e9102a441ca53afeb0a56330c70 (diff)
downloadbcm5719-llvm-1cab8a070837053b2335b50ab0fd61cd34b0fc6b.tar.gz
bcm5719-llvm-1cab8a070837053b2335b50ab0fd61cd34b0fc6b.zip
blockfreq: Store the header with the members
<rdar://problem/14292693> llvm-svn: 207182
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
index 90090d7e8f1..761bda5aa9b 100644
--- a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
+++ b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
@@ -746,7 +746,7 @@ void BlockFrequencyInfoImplBase::packageLoop(LoopData &Loop) {
DEBUG(dbgs() << "packaging-loop: " << getBlockName(Loop.getHeader()) << "\n");
Loop.IsPackaged = true;
DEBUG(for (const BlockNode &M
- : Loop.Members) {
+ : Loop.members()) {
dbgs() << " - node: " << getBlockName(M.Index) << "\n";
});
}
@@ -859,7 +859,7 @@ static void unwrapLoopPackage(BlockFrequencyInfoImplBase &BFI,
// Propagate the head scale through the loop. Since members are visited in
// RPO, the head scale will be updated by the loop scale first, and then the
// final head scale will be used for updated the rest of the members.
- for (const BlockNode &M : LoopPackage.Members) {
+ for (const BlockNode &M : LoopPackage.members()) {
const FrequencyData &HeadData = BFI.Freqs[Head.Index];
FrequencyData &Freqs = BFI.Freqs[M.Index];
Float NewFreq = Freqs.Floating * HeadData.Floating;
OpenPOWER on IntegriCloud