X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeuses.c;h=bdb9875497abf3bd314b7db2f3ecf9d575f94fa7;hb=80a6158fdd766f42ee6c508a773bc114ff1b61f3;hp=942499a6ed6f03414ddc635440d231bbb4b5d84f;hpb=0c92b911be3d9d02b4a49b2a142dab8d7ba978a6;p=libfirm diff --git a/ir/be/beuses.c b/ir/be/beuses.c index 942499a6e..bdb987549 100644 --- a/ir/be/beuses.c +++ b/ir/be/beuses.c @@ -105,7 +105,7 @@ static const be_use_t *get_or_set_use_block(be_uses_t *env, static int be_is_phi_argument(const be_lv_t *lv, const ir_node *block, const ir_node *def) { ir_node *node; - ir_node *succ_block; + ir_node *succ_block = NULL; const ir_edge_t *edge; int arity, i; @@ -170,17 +170,18 @@ static be_next_use_t get_next_use(be_uses_t *env, ir_node *from, const ir_node *operand = get_irn_n(node, i); if (operand == def) { + be_next_use_t result; + DBG((env->dbg, LEVEL_3, "found use of %+F at %+F\n", operand, node)); /** * Spills/Reloads are a special case, they're not really a * usage of a value, continue searching */ - if(be_is_Spill(node) || be_is_Reload(node)) { + if (be_is_Spill(node) || be_is_Reload(node)) { return be_get_next_use(env, node, step, node, 1); } - be_next_use_t result; result.time = step; result.outermost_loop = get_loop_depth(get_irn_loop(block)); return result;