[block-freq] Rename getEntryFrequency() -> getEntryFreq() to match getBlockFreq(...
authorMichael Gottesman <mgottesman@apple.com>
Sat, 14 Dec 2013 02:37:38 +0000 (02:37 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Sat, 14 Dec 2013 02:37:38 +0000 (02:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197304 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/BlockFrequencyImpl.h
include/llvm/CodeGen/MachineBlockFrequencyInfo.h
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/MachineBlockFrequencyInfo.cpp
lib/CodeGen/RegAllocGreedy.cpp
lib/CodeGen/SpillPlacement.cpp

index c09c0407d80701f2d44474a55563f44e0519e51c..2d04c5d4a988a49096d366a888e25477c92291cf 100644 (file)
@@ -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 {
index 761b59cb1d2c4225486c64e967d2c3dd2fa31e13..5ec4660c850bba93821bbbbe3718c9c811a932f9 100644 (file)
@@ -62,7 +62,7 @@ public:
   raw_ostream &printBlockFreq(raw_ostream &OS,
                               const MachineBasicBlock *MBB) const;
 
-  uint64_t getEntryFrequency() const;
+  uint64_t getEntryFreq() const;
 
 };
 
index 778ba4a5b95c209a8248a90fb415b325f02de648..4329ffc015b3cbf57a652ff9b5466c6aca45686d 100644 (file)
@@ -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);
 }
 
index 34ebd488b8d799ac68e35e4e622f1f54163a49f3..cc2f31795b8c16227284f43918983ec7832411f8 100644 (file)
@@ -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();
 }
index 4590145a1c3140c3b80c45c51eb5447e62468fe7..ca9573138c8317e1ee818bebf6b21e4282584616 100644 (file)
@@ -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();
index 9edcdbcc418e8ec2468fc53898e531712cb21c9f..02c2035f4f6b92ab8abe0a707b1fd938dcf9eda8 100644 (file)
@@ -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);
   }
 }