From: Michael Gottesman Date: Sat, 14 Dec 2013 02:37:38 +0000 (+0000) Subject: [block-freq] Rename getEntryFrequency() -> getEntryFreq() to match getBlockFreq(... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=523823b89724cb574c4e899556ae22b239b3daa5;p=oota-llvm.git [block-freq] Rename getEntryFrequency() -> getEntryFreq() to match getBlockFreq() in all *BlockFrequencyInfo*. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197304 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/BlockFrequencyImpl.h b/include/llvm/Analysis/BlockFrequencyImpl.h index c09c0407d80..2d04c5d4a98 100644 --- a/include/llvm/Analysis/BlockFrequencyImpl.h +++ b/include/llvm/Analysis/BlockFrequencyImpl.h @@ -317,7 +317,7 @@ class BlockFrequencyImpl { public: - uint64_t getEntryFrequency() { return EntryFreq; } + uint64_t getEntryFreq() { return EntryFreq; } /// getBlockFreq - Return block frequency. Return 0 if we don't have it. BlockFrequency getBlockFreq(const BlockT *BB) const { diff --git a/include/llvm/CodeGen/MachineBlockFrequencyInfo.h b/include/llvm/CodeGen/MachineBlockFrequencyInfo.h index 761b59cb1d2..5ec4660c850 100644 --- a/include/llvm/CodeGen/MachineBlockFrequencyInfo.h +++ b/include/llvm/CodeGen/MachineBlockFrequencyInfo.h @@ -62,7 +62,7 @@ public: raw_ostream &printBlockFreq(raw_ostream &OS, const MachineBasicBlock *MBB) const; - uint64_t getEntryFrequency() const; + uint64_t getEntryFreq() const; }; diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 778ba4a5b95..4329ffc015b 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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/lib/CodeGen/MachineBlockFrequencyInfo.cpp b/lib/CodeGen/MachineBlockFrequencyInfo.cpp index 34ebd488b8d..cc2f31795b8 100644 --- a/lib/CodeGen/MachineBlockFrequencyInfo.cpp +++ b/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/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index 4590145a1c3..ca9573138c8 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/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 GapWeight; Order.rewind(); diff --git a/lib/CodeGen/SpillPlacement.cpp b/lib/CodeGen/SpillPlacement.cpp index 9edcdbcc418..02c2035f4f6 100644 --- a/lib/CodeGen/SpillPlacement.cpp +++ b/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); } }