From 164c968086b3fda7cbf1dab170de031a9e3ae632 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 7 Jan 2017 17:24:14 -0800 Subject: Adapt to libfirm irarch changes --- libfirm | 2 +- src/firm/firm_opt.c | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/libfirm b/libfirm index ec7cfdc..acf1a37 160000 --- a/libfirm +++ b/libfirm @@ -1 +1 @@ -Subproject commit ec7cfdce1d4fbf613620772367a7adf3f3ca50a4 +Subproject commit acf1a376620890041b2a637a79a46da6700012d6 diff --git a/src/firm/firm_opt.c b/src/firm/firm_opt.c index 8b2a54a..9e0a186 100644 --- a/src/firm/firm_opt.c +++ b/src/firm/firm_opt.c @@ -619,6 +619,8 @@ static void do_firm_optimizations(void) do_irg_opt(irg, "local"); do_irg_opt(irg, "vrp"); } + + do_irg_opt(irg, "reassociation"); } if (firm_dump.ir_graph) { @@ -635,17 +637,6 @@ static void do_firm_optimizations(void) */ static void do_firm_lowering(void) { - /* enable architecture dependent optimizations */ - arch_dep_set_opts((arch_dep_opts_t) - ((firm_opt.muls ? arch_dep_mul_to_shift : arch_dep_none) | - (firm_opt.divs ? arch_dep_div_by_const : arch_dep_none) | - (firm_opt.mods ? arch_dep_mod_by_const : arch_dep_none) )); - for (size_t i = get_irp_n_irgs(); i-- > 0; ) { - ir_graph *irg = get_irp_irg(i); - do_irg_opt(irg, "reassociation"); - do_irg_opt(irg, "local"); - } - do_irp_opt("target-lowering"); for (size_t i = get_irp_n_irgs(); i-- > 0; ) { -- cgit v1.0-21-g2218