mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Allow getBlockFreq to return 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135742 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user