diff options
| -rw-r--r-- | llvm/include/llvm/Analysis/BlockFrequencyImpl.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineBlockFrequencyInfo.h | 2 | ||||
| -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 |
6 files changed, 7 insertions, 7 deletions
diff --git a/llvm/include/llvm/Analysis/BlockFrequencyImpl.h b/llvm/include/llvm/Analysis/BlockFrequencyImpl.h index c09c0407d80..2d04c5d4a98 100644 --- a/llvm/include/llvm/Analysis/BlockFrequencyImpl.h +++ b/llvm/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/llvm/include/llvm/CodeGen/MachineBlockFrequencyInfo.h b/llvm/include/llvm/CodeGen/MachineBlockFrequencyInfo.h index 761b59cb1d2..5ec4660c850 100644 --- a/llvm/include/llvm/CodeGen/MachineBlockFrequencyInfo.h +++ b/llvm/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/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); } } |

