Commit c2990ce8 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Assert that the exec freq in set_block_execfreq() is non-negative.

parent 5cdf5650
......@@ -69,6 +69,7 @@ double get_block_execfreq(const ir_node *block)
void set_block_execfreq(ir_node *block, double newfreq)
assert(newfreq >= 0);
block->attr.block.execfreq = newfreq;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment