X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fopt_inline.c;h=1eb9122a81e5d28e7fbe52f900c9f8abaddefb51;hb=04d455ab69c9d1549305ccbd6f97eb802db91ff4;hp=c23694c6bcf9f67f15d0bafd9ca12d8742da1a25;hpb=7a483ab981d403222150c320242adaad13d60af9;p=libfirm diff --git a/ir/opt/opt_inline.c b/ir/opt/opt_inline.c index c23694c6b..1eb9122a8 100644 --- a/ir/opt/opt_inline.c +++ b/ir/opt/opt_inline.c @@ -714,7 +714,6 @@ void inline_small_irgs(ir_graph *irg, int size) { ir_graph *rem = current_ir_graph; inline_env_t env; - call_entry *entry; current_ir_graph = irg; /* Handle graph state */ @@ -939,7 +938,7 @@ static call_entry *duplicate_call_entry(const call_entry *entry, */ static void append_call_list(inline_irg_env *dst, inline_irg_env *src, int loop_depth) { - call_entry *entry, *nentry; + call_entry *nentry; /* Note that the src list points to Call nodes in the inlined graph, but we need Call nodes in our graph. Luckily the inliner leaves this information @@ -969,8 +968,6 @@ void inline_leaf_functions(unsigned maxsize, unsigned leafsize, ir_graph *rem; int did_inline; wenv_t wenv; - call_entry *entry, *next; - const call_entry *centry; pmap *copied_graphs; pmap_entry *pm_entry; @@ -1084,7 +1081,7 @@ void inline_leaf_functions(unsigned maxsize, unsigned leafsize, continue; } - calleee = (ir_graph*)pmap_get(copied_graphs, callee); + calleee = pmap_get(ir_graph, copied_graphs, callee); if (calleee != NULL) { /* * Remap callee if we have a copy. @@ -1566,7 +1563,6 @@ static void inline_into(ir_graph *irg, unsigned maxsize, { int phiproj_computed = 0; inline_irg_env *env = (inline_irg_env*)get_irg_link(irg); - call_entry *curr_call; wenv_t wenv; pqueue_t *pqueue; @@ -1599,7 +1595,6 @@ static void inline_into(ir_graph *irg, unsigned maxsize, irg_inline_property prop = get_irg_inline_property(callee); ir_graph *calleee; int loop_depth; - const call_entry *centry; if ((prop < irg_inline_forced) && env->n_nodes + callee_env->n_nodes > maxsize) { DB((dbg, LEVEL_2, "%+F: too big (%d) + %+F (%d)\n", irg, @@ -1607,7 +1602,7 @@ static void inline_into(ir_graph *irg, unsigned maxsize, continue; } - calleee = (ir_graph*)pmap_get(copied_graphs, callee); + calleee = pmap_get(ir_graph, copied_graphs, callee); if (calleee != NULL) { int benefice = curr_call->benefice; /*