From b82bbf40bb5c656d405c54b2c63da79793f09f0f Mon Sep 17 00:00:00 2001 From: Jakub Staszak Date: Fri, 22 Jul 2011 02:24:57 +0000 Subject: Allow getBlockFreq to return 0. llvm-svn: 135742 --- llvm/lib/CodeGen/MachineBlockFrequency.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/MachineBlockFrequency.cpp') diff --git a/llvm/lib/CodeGen/MachineBlockFrequency.cpp b/llvm/lib/CodeGen/MachineBlockFrequency.cpp index 0a77bdd38a2..f3ee5388e59 100644 --- a/llvm/lib/CodeGen/MachineBlockFrequency.cpp +++ b/llvm/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); -- cgit v1.2.3