aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineBlockFrequency.cpp
diff options
context:
space:
mode:
authorJakub Staszak <jstaszak@apple.com>2011-07-22 02:24:57 +0000
committerJakub Staszak <jstaszak@apple.com>2011-07-22 02:24:57 +0000
commit23f34f1c22db8df6e767a29365d668ac9ede112c (patch)
treec4a340488f07e6af338281d856ec91c0d52c8751 /lib/CodeGen/MachineBlockFrequency.cpp
parent558cc5a914118bba0e7843f1878f6137fea88d91 (diff)
Allow getBlockFreq to return 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBlockFrequency.cpp')
-rw-r--r--lib/CodeGen/MachineBlockFrequency.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/MachineBlockFrequency.cpp b/lib/CodeGen/MachineBlockFrequency.cpp
index 0a77bdd38a..f3ee5388e5 100644
--- a/lib/CodeGen/MachineBlockFrequency.cpp
+++ b/lib/CodeGen/MachineBlockFrequency.cpp
@@ -50,10 +50,10 @@ bool MachineBlockFrequency::runOnMachineFunction(MachineFunction &F) {
return false;
}
-/// getblockFreq - Return block frequency. Never return 0, value must be
-/// positive. Please note that initial frequency is equal to 1024. It means 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.
+/// getblockFreq - Return block frequency. Return 0 if we don't have the
+/// information. Please note that initial frequency is equal to 1024. It means
+/// 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.
///
uint32_t MachineBlockFrequency::getBlockFreq(MachineBasicBlock *MBB) {
return MBFI->getBlockFreq(MBB);