From: Christian Würdig Date: Sun, 11 Feb 2007 15:57:16 +0000 (+0000) Subject: kill nodes only reachable via out edges after backend transformation X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=6be08f9b4120afddd7849bf9bcb00c4475b0296f;hp=eaef4d4c3f2de6be097fef861180be6b3cd290ca;p=libfirm kill nodes only reachable via out edges after backend transformation --- diff --git a/ir/be/bemain.c b/ir/be/bemain.c index a37208a24..97b2b5ef5 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -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));