diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-12-14 02:37:38 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-12-14 02:37:38 +0000 |
commit | 5e985ee5b56b0d74496a1f0773a29bac0e89b4f4 (patch) | |
tree | a08eb5e3d79a9d54dd945c1e532a31475c61d0fe /llvm/lib/CodeGen | |
parent | fb9164f0d2f7cc51ef3952d98a367b53a53f2870 (diff) | |
download | bcm5719-llvm-5e985ee5b56b0d74496a1f0773a29bac0e89b4f4.tar.gz bcm5719-llvm-5e985ee5b56b0d74496a1f0773a29bac0e89b4f4.zip |
[block-freq] Rename getEntryFrequency() -> getEntryFreq() to match getBlockFreq() in all *BlockFrequencyInfo*.
llvm-svn: 197304
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SpillPlacement.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 778ba4a5b95..4329ffc015b 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -625,7 +625,7 @@ LiveIntervals::getSpillWeight(bool isDef, bool isUse, const MachineBlockFrequencyInfo *MBFI, const MachineInstr *MI) { BlockFrequency Freq = MBFI->getBlockFreq(MI->getParent()); - const float Scale = 1.0f / MBFI->getEntryFrequency(); + const float Scale = 1.0f / MBFI->getEntryFreq(); return (isDef + isUse) * (Freq.getFrequency() * Scale); } diff --git a/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp b/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp index 34ebd488b8d..cc2f31795b8 100644 --- a/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp +++ b/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp @@ -181,6 +181,6 @@ MachineBlockFrequencyInfo::printBlockFreq(raw_ostream &OS, return MBFI->printBlockFreq(OS, MBB); } -uint64_t MachineBlockFrequencyInfo::getEntryFrequency() const { - return MBFI->getEntryFrequency(); +uint64_t MachineBlockFrequencyInfo::getEntryFreq() const { + return MBFI->getEntryFreq(); } diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index 4590145a1c3..ca9573138c8 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -1591,7 +1591,7 @@ unsigned RAGreedy::tryLocalSplit(LiveInterval &VirtReg, AllocationOrder &Order, const float blockFreq = SpillPlacer->getBlockFrequency(BI.MBB->getNumber()).getFrequency() * - (1.0f / MBFI->getEntryFrequency()); + (1.0f / MBFI->getEntryFreq()); SmallVector<float, 8> GapWeight; Order.rewind(); diff --git a/llvm/lib/CodeGen/SpillPlacement.cpp b/llvm/lib/CodeGen/SpillPlacement.cpp index 9edcdbcc418..02c2035f4f6 100644 --- a/llvm/lib/CodeGen/SpillPlacement.cpp +++ b/llvm/lib/CodeGen/SpillPlacement.cpp @@ -221,7 +221,7 @@ void SpillPlacement::activate(unsigned n) { // Hopfield network. if (bundles->getBlocks(n).size() > 100) { nodes[n].BiasP = 0; - nodes[n].BiasN = (MBFI->getEntryFrequency() / 16); + nodes[n].BiasN = (MBFI->getEntryFreq() / 16); } } |