kill nodes only reachable via out edges after backend transformation
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Sun, 11 Feb 2007 15:57:16 +0000 (15:57 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Sun, 11 Feb 2007 15:57:16 +0000 (15:57 +0000)
ir/be/bemain.c

index a37208a..97b2b5e 100644 (file)
@@ -528,7 +528,8 @@ static void be_main_loop(FILE *file_handle, const char *cup_name)
 
                be_do_stat_nodes(irg, "03 Prepare");
 
-               /* Compute loop nesting information (for weighting copies) */
+               /* Transformation may produce nodes only reachable via out edges, kill them. */
+               be_kill_dead_nodes(irg);
                dump(DUMP_PREPARED, irg, "-prepared", dump_ir_block_graph);
                BE_TIMER_ONLY(num_nodes_r = get_num_reachable_nodes(irg));