From: Michael Beck Date: Fri, 6 Jun 2008 13:50:14 +0000 (+0000) Subject: synchronize with eccp X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=4009c85f62164407a3a0ed8e7594332d1c0da63e;p=cparser synchronize with eccp [r20005] --- diff --git a/driver/firm_opt.c b/driver/firm_opt.c index c33995c..b234948 100644 --- a/driver/firm_opt.c +++ b/driver/firm_opt.c @@ -1082,6 +1082,12 @@ void gen_firm_finish(FILE *out, const char *input_filename, int c_mode, int firm /* all graphs are finalized, set the irp phase to high */ set_irp_phase_state(phase_high); + /* BEWARE: kill unreachable code before doing compound lowering */ + for (i = get_irp_n_irgs() - 1; i >= 0; --i) { + ir_graph *irg = get_irp_irg(i); + optimize_cf(irg); + } + /* lower all compound call return values */ lower_compound_params();