From 0c8cf6ef2aad156f88f402e4377fe5635a8a42ba Mon Sep 17 00:00:00 2001 From: Daniel Grund Date: Thu, 2 Mar 2006 15:34:39 +0000 Subject: [PATCH] Loop info was killed by deadnode elimination --- ir/be/bemain.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ir/be/bemain.c b/ir/be/bemain.c index d9c0e0dc6..8849ddf19 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -225,10 +225,6 @@ static void prepare_graph(be_irg_t *birg) /* Ensure, that the ir_edges are computed. */ edges_activate(irg); - /* Compute loop nesting information (for weighting copies) */ - if (get_irg_loopinfo_state(irg) != (loopinfo_valid & loopinfo_cf_consistent)) - construct_cf_backedges(irg); - /* check, if the dominance property is fulfilled. */ be_check_dominance(irg); @@ -284,6 +280,9 @@ static void be_main_loop(FILE *file_handle) dead_node_elimination(irg); edges_activate(irg); + /* Compute loop nesting information (for weighting copies) */ + construct_cf_backedges(irg); + dump(DUMP_PREPARED, irg, "-prepared", dump_ir_block_graph); /* Schedule the graphs. */ -- 2.20.1