diff options
| author | Jakub Staszak <jstaszak@apple.com> | 2011-07-22 02:24:57 +0000 |
|---|---|---|
| committer | Jakub Staszak <jstaszak@apple.com> | 2011-07-22 02:24:57 +0000 |
| commit | b82bbf40bb5c656d405c54b2c63da79793f09f0f (patch) | |
| tree | 3f645e143d67113c74e255bc02a893ba89bf0dc4 /llvm/lib/CodeGen/MachineBlockFrequency.cpp | |
| parent | a91768e56977920cbe9723c8f3f5371e3d37d379 (diff) | |
| download | bcm5719-llvm-b82bbf40bb5c656d405c54b2c63da79793f09f0f.tar.gz bcm5719-llvm-b82bbf40bb5c656d405c54b2c63da79793f09f0f.zip | |
Allow getBlockFreq to return 0.
llvm-svn: 135742
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockFrequency.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineBlockFrequency.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); |

