make sure backedges are available before dumping them
authorMatthias Braun <matze@braunis.de>
Mon, 22 Jan 2007 10:59:14 +0000 (10:59 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 22 Jan 2007 10:59:14 +0000 (10:59 +0000)
[r8547]

ir/ir/irdump.c

index 9857f39..38b9260 100644 (file)
@@ -2330,6 +2330,10 @@ dump_ir_graph(ir_graph *irg, const char *suffix )
        if (!is_filtered_dump_name(get_entity_ident(get_irg_entity(irg))))
                return;
 
+       if (dump_backedge_information_flag && get_irg_loopinfo_state(irg) != loopinfo_consistent) {
+               construct_backedges(irg);
+       }
+
        rem = current_ir_graph;
        current_ir_graph = irg;
        if (get_interprocedural_view()) suffix1 = "-pure-ip";