remove unused entities directly before backend so we catch more cases
authorMatthias Braun <matze@braunis.de>
Sun, 7 Mar 2010 20:29:34 +0000 (20:29 +0000)
committerMatthias Braun <matze@braunis.de>
Sun, 7 Mar 2010 20:29:34 +0000 (20:29 +0000)
[r27269]

driver/firm_opt.c

index ee8883f..c907a71 100644 (file)
@@ -596,8 +596,6 @@ static void do_firm_optimizations(const char *input_filename)
                        construct_cf_backedges(get_irp_irg(i));
        }
 
-       do_irp_opt("remove-unused");
-
        dump_all("-opt");
 
        if (firm_dump.statistic & STAT_AFTER_OPT)
@@ -666,6 +664,8 @@ static void do_firm_lowering(const char *input_filename)
                }
                timer_stop(t_all_opt);
 
+               do_irp_opt("remove-unused");
+
                dump_all("-low-opt");
        }