summaryrefslogtreecommitdiffhomepage
path: root/src/firm/firm_opt.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-01-08 02:24:14 +0100
committerMatthias Braun <matze@braunis.de>2017-01-28 21:31:22 +0100
commit164c968086b3fda7cbf1dab170de031a9e3ae632 (patch)
treef486ee75d53b6b48739551ab3b4532a04a91bab8 /src/firm/firm_opt.c
parent02d3785428a79147325d84eafa3befa63f173ada (diff)
Adapt to libfirm irarch changes
Diffstat (limited to 'src/firm/firm_opt.c')
-rw-r--r--src/firm/firm_opt.c13
1 files changed, 2 insertions, 11 deletions
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; ) {