used is_final_ent() instead of *_n_overwrites == 0
[libfirm] / testprograms / global_cse.c
index 1c1c11e..a9bed6d 100644 (file)
@@ -100,7 +100,7 @@ main(void)
   cmp = new_Cmp(get_value(a_pos, mode_Is), get_value(b_pos, mode_Is)); /*
   cmp = new_Cmp(new_Const (mode_Is, new_tarval_from_long (2, mode_Is)),
                 new_Const (mode_Is, new_tarval_from_long (2, mode_Is)));*/
-  x = new_Cond (new_Proj(cmp, mode_b, Eq));
+  x = new_Cond (new_Proj(cmp, mode_b, pn_Cmp_Eq));
   f = new_Proj (x, mode_X, 0);
   t = new_Proj (x, mode_X, 1);
 
@@ -147,11 +147,11 @@ main(void)
 
   /* verify the graph */
   irg_vrfy(irg);
-  finalize_cons (irg);
+  irg_finalize_cons (irg);
 
   printf("Optimizing ...\n");
   local_optimize_graph(irg);
-  dead_node_elimination(irg);
+
 
   /* output the vcg file */
   printf("Done building the graph.  Dumping it.\n");