From: Michael Beck Date: Mon, 2 Aug 2004 11:21:43 +0000 (+0000) Subject: The phase of the code_code_irg is phase_high now. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=45168caffe7eba0926a10610ac3114f8ba45a38c;p=libfirm The phase of the code_code_irg is phase_high now. This should be ok, as long as no blocks are added to this irg (which is a bad idea anyway until yet) [r3662] --- diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index ff67ad35d..c6216fdd2 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -191,17 +191,17 @@ ir_graph *new_const_code_irg(void) { res->obst = (struct obstack *) xmalloc (sizeof (struct obstack)); obstack_init (res->obst); res->phase_state = phase_building; - res->pinned = pinned; + res->pinned = pinned; res->value_table = new_identities (); /* value table for global value numbering for optimizing use in iropt.c */ res->ent = NULL; - res->frame_type = NULL; + res->frame_type = NULL; res->start_block = new_immBlock (); - res->end_block = new_immBlock (); - res->end = new_End (); - res->end_reg = res->end; - res->end_except = res->end; + res->end_block = new_immBlock (); + res->end = new_End (); + res->end_reg = res->end; + res->end_except = res->end; mature_block(get_cur_block()); res->bad = new_ir_node (NULL, res, res->start_block, op_Bad, mode_T, 0, NULL); res->start = new_Start (); @@ -222,6 +222,8 @@ ir_graph *new_const_code_irg(void) { set_Block_block_visited(res->start_block, -1); set_irn_visited(res->start_block, -1); set_irn_visited(res->bad, -1); + + res->phase_state = phase_high; return res; }