X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fcode_placement.c;h=577ad983e2503db818aa4d85aaaeea6a888d577b;hb=1cf669f14fb238c8cdcfe187714ff2f6579a784c;hp=fe140dcd832bb7b746e493cb49f0329bc535e561;hpb=0b4ffc9e2d57b0393ad86820e9415c0ccbc54549;p=libfirm diff --git a/ir/opt/code_placement.c b/ir/opt/code_placement.c index fe140dcd8..577ad983e 100644 --- a/ir/opt/code_placement.c +++ b/ir/opt/code_placement.c @@ -25,9 +25,7 @@ * Michael Beck * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #include "adt/pdeq.h" #include "irnode_t.h" @@ -306,10 +304,8 @@ static ir_node *consumer_dom_dca(ir_node *dca, ir_node *consumer, ir_node *produ return dca; } -/* FIXME: the name clashes here with the function from ana/field_temperature.c - * please rename. */ -static INLINE int get_irn_loop_depth(ir_node *n) { - return get_loop_depth(get_irn_loop(n)); +static inline int get_block_loop_depth(ir_node *block) { + return get_loop_depth(get_irn_loop(block)); } /** @@ -333,7 +329,7 @@ static void move_out_of_loops(ir_node *n, ir_node *early) { while (dca != early) { dca = get_Block_idom(dca); if (!dca || is_Bad(dca)) break; /* may be Bad if not reachable from Start */ - if (get_irn_loop_depth(dca) < get_irn_loop_depth(best)) { + if (get_block_loop_depth(dca) < get_block_loop_depth(best)) { best = dca; } }