summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-12-14 02:37:38 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-12-14 02:37:38 +0000
commit523823b89724cb574c4e899556ae22b239b3daa5 (patch)
tree55edcbd8f86df09c6be505fee698ccebf9ae5123 /lib/CodeGen/LiveIntervalAnalysis.cpp
parentb68ca3e9c5791db9da07b7767a8ee915a104e99a (diff)
downloadllvm-523823b89724cb574c4e899556ae22b239b3daa5.tar.gz
llvm-523823b89724cb574c4e899556ae22b239b3daa5.tar.bz2
llvm-523823b89724cb574c4e899556ae22b239b3daa5.tar.xz
[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
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 778ba4a5b9..4329ffc015 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);
}