From 23f34f1c22db8df6e767a29365d668ac9ede112c 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135742 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/BlockFrequency.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Analysis/BlockFrequency.cpp') diff --git a/lib/Analysis/BlockFrequency.cpp b/lib/Analysis/BlockFrequency.cpp index 4b86d1db1f..49b69d1197 100644 --- a/lib/Analysis/BlockFrequency.cpp +++ b/lib/Analysis/BlockFrequency.cpp @@ -49,10 +49,10 @@ bool BlockFrequency::runOnFunction(Function &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 BlockFrequency::getBlockFreq(BasicBlock *BB) { return BFI->getBlockFreq(BB); -- cgit v1.2.3-18-g5258