X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fana%2Firextbb2.c;h=3c934c216cddaa87f1bfa41211e0b2ae89ee72fe;hb=4afdd22d55e88960e79760b6193253534ce298f1;hp=2e0966ceed8869588351a551d0dfe9262fa8639b;hpb=e07b61c6ed5d198a484761f8a40a4f26520d964d;p=libfirm diff --git a/ir/ana/irextbb2.c b/ir/ana/irextbb2.c index 2e0966cee..3c934c216 100644 --- a/ir/ana/irextbb2.c +++ b/ir/ana/irextbb2.c @@ -27,9 +27,7 @@ * Alternative algorithm for computing extended basic blocks (using out edges * and execution frequencies) */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #include "irextbb_t.h" #include "irgwalk.h" @@ -109,11 +107,10 @@ static void create_extblk(ir_node *block, env_t *env) { ir_extblk *extblk; - if (irn_visited(block)) + if (irn_visited_else_mark(block)) return; extblk = allocate_extblk(block, env); - mark_irn_visited(block); pick_successor(block, extblk, env); } @@ -207,9 +204,7 @@ void compute_extbb_execfreqs(ir_graph *irg, ir_exec_freq *execfreqs) { /* the end block needs a extbb assigned (even for endless loops) */ endblock = get_irg_end_block(irg); - if (! irn_visited(endblock)) { - create_extblk(endblock, &env); - } + create_extblk(endblock, &env); /* Ok, we have now the list of all extended blocks starting with env.head