Add more constantness in BlockFrequencyInfo.
authorJakub Staszak <jstaszak@apple.com>
Wed, 3 Aug 2011 21:30:57 +0000 (21:30 +0000)
committerJakub Staszak <jstaszak@apple.com>
Wed, 3 Aug 2011 21:30:57 +0000 (21:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136816 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/BlockFrequencyInfo.h
include/llvm/CodeGen/MachineBlockFrequencyInfo.h
lib/Analysis/BlockFrequencyInfo.cpp
lib/CodeGen/MachineBlockFrequencyInfo.cpp

index bd9807dc89658371de018d5dd6976ef0643dddf7..5978d5fa0ee9e82465c1d22c973daf745d06ba45 100644 (file)
@@ -46,7 +46,7 @@ public:
   /// that we should not rely on the value itself, but only on the comparison to
   /// the other block frequencies. We do this to avoid using of floating points.
   ///
-  BlockFrequency getBlockFreq(BasicBlock *BB);
+  BlockFrequency getBlockFreq(BasicBlock *BB) const;
 };
 
 }
index 63ab2ef850bd810a0550ec99fa4da2bab2902846..416d40bf30987a8c2893e29ff414b2c2616c7368 100644 (file)
@@ -46,7 +46,7 @@ public:
   /// that we should not rely on the value itself, but only on the comparison to
   /// the other block frequencies. We do this to avoid using of floating points.
   ///
-  BlockFrequency getBlockFreq(MachineBasicBlock *MBB);
+  BlockFrequency getBlockFreq(MachineBasicBlock *MBB) const;
 };
 
 }
index 5bb3540a1ff8e7e1215289bef15d9cbf23e413e5..ee899153e1dc5f34b954e2980b0450cf54daaef9 100644 (file)
@@ -54,6 +54,6 @@ bool BlockFrequencyInfo::runOnFunction(Function &F) {
 /// that we should not rely on the value itself, but only on the comparison to
 /// the other block frequencies. We do this to avoid using of floating points.
 ///
-BlockFrequency BlockFrequencyInfo::getBlockFreq(BasicBlock *BB) {
+BlockFrequency BlockFrequencyInfo::getBlockFreq(BasicBlock *BB) const {
   return BFI->getBlockFreq(BB);
 }
index 4e08ebe6a9430f80f0b0458e747759d078ab4892..b92cda9614749f7d3b6421c30f65575cb0ef7fb4 100644 (file)
@@ -55,6 +55,7 @@ bool MachineBlockFrequencyInfo::runOnMachineFunction(MachineFunction &F) {
 /// that we should not rely on the value itself, but only on the comparison to
 /// the other block frequencies. We do this to avoid using of floating points.
 ///
-BlockFrequency MachineBlockFrequencyInfo::getBlockFreq(MachineBasicBlock *MBB) {
+BlockFrequency MachineBlockFrequencyInfo::
+getBlockFreq(MachineBasicBlock *MBB) const {
   return MBFI->getBlockFreq(MBB);
 }