X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Firextbb2.c;h=bb643725469f1806b0a0a0188df3d0e7e2c6917e;hb=bb5c6d5ce2e35c4074900017f8c8e1a4935054d0;hp=3c007af64b8fece21460713b24dfc5c1fc311bba;hpb=9b716841c3b0865b86af8d3890b3914060c37ed0;p=libfirm diff --git a/ir/ana/irextbb2.c b/ir/ana/irextbb2.c index 3c007af64..bb6437254 100644 --- a/ir/ana/irextbb2.c +++ b/ir/ana/irextbb2.c @@ -1,5 +1,5 @@ /* - * Copyrigth (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -191,7 +191,7 @@ void compute_extbb_execfreqs(ir_graph *irg, ir_exec_freq *execfreqs) { obstack_free(irg->extbb_obst, NULL); } else { - irg->extbb_obst = xmalloc(sizeof(*irg->extbb_obst)); + irg->extbb_obst = XMALLOC(struct obstack); } obstack_init(irg->extbb_obst); @@ -207,9 +207,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