6812721: Block's frequency should not be NaN
Set MIN_BLOCK_FREQUENCY block's frequency when calculated block's frequency is NaN Reviewed-by: never
This commit is contained in:
parent
4b15cdadd3
commit
3e2ae68252
@ -1901,7 +1901,8 @@ void CFGLoop::scale_freq() {
|
|||||||
for (int i = 0; i < _members.length(); i++) {
|
for (int i = 0; i < _members.length(); i++) {
|
||||||
CFGElement* s = _members.at(i);
|
CFGElement* s = _members.at(i);
|
||||||
float block_freq = s->_freq * loop_freq;
|
float block_freq = s->_freq * loop_freq;
|
||||||
if (block_freq < MIN_BLOCK_FREQUENCY) block_freq = MIN_BLOCK_FREQUENCY;
|
if (g_isnan(block_freq) || block_freq < MIN_BLOCK_FREQUENCY)
|
||||||
|
block_freq = MIN_BLOCK_FREQUENCY;
|
||||||
s->_freq = block_freq;
|
s->_freq = block_freq;
|
||||||
}
|
}
|
||||||
CFGLoop* ch = _child;
|
CFGLoop* ch = _child;
|
||||||
|
Loading…
Reference in New Issue
Block a user