Commit 61098d23 authored by yb9976's avatar yb9976
Browse files

Reduce scope of local variable.

parent e8603704
......@@ -190,8 +190,7 @@ static void collect_egde_frequency(ir_node *block, void *data)
entry->block = block;
set_irn_link(block, entry);
ir_loop *loop = get_irn_loop(block);
int arity = get_Block_n_cfgpreds(block);
int arity = get_Block_n_cfgpreds(block);
if (arity == 0) {
/* must be the start block, everything else is dead code and should be
* removed by now */
......@@ -199,6 +198,7 @@ static void collect_egde_frequency(ir_node *block, void *data)
/* nothing to do here */
return;
} else if (arity == 1) {
ir_loop *loop = get_irn_loop(block);
ir_node *pred_block = get_Block_cfgpred_block(block, 0);
ir_loop *pred_loop = get_irn_loop(pred_block);
float freq = (float)get_block_execfreq(block);
......
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