The phase of the code_code_irg is phase_high now.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Aug 2004 11:21:43 +0000 (11:21 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Aug 2004 11:21:43 +0000 (11:21 +0000)
This should be ok, as long as no blocks are added to this irg (which is a bad idea anyway
until yet)

[r3662]

ir/ir/irgraph.c

index ff67ad3..c6216fd 100644 (file)
@@ -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;
 }