Commit 195d3b24 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Use the proper magic word (get_Block_n_cfgpreds()) to get the number of cf...

Use the proper magic word (get_Block_n_cfgpreds()) to get the number of cf predecessors of a block instead of the generic get_irn_arity().

[r13910]
parent e77a29c7
...@@ -137,7 +137,7 @@ static void collect_egde_frequency(ir_node *block, void *data) ...@@ -137,7 +137,7 @@ static void collect_egde_frequency(ir_node *block, void *data)
if (block == get_irg_start_block(env->irg)) if (block == get_irg_start_block(env->irg))
return; return;
arity = get_irn_arity(block); arity = get_Block_n_cfgpreds(block);
if (arity == 1) { if (arity == 1) {
edge.block = block; edge.block = block;
......
Supports Markdown
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