summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-12-27 08:04:18 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2017-01-29 07:04:50 +0100
commit5fef24bfa6a28ad84997046b3704a95e93dac8f1 (patch)
treeea376117165b50f9952d697afc62789d76cd5343 /src
parent164c968086b3fda7cbf1dab170de031a9e3ae632 (diff)
Dump types also after lowering, not just before.
Diffstat (limited to 'src')
-rw-r--r--src/firm/firm_opt.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/firm/firm_opt.c b/src/firm/firm_opt.c
index 9e0a186..ed893e7 100644
--- a/src/firm/firm_opt.c
+++ b/src/firm/firm_opt.c
@@ -714,6 +714,12 @@ void init_gen_firm(void)
timer_register(t_backend, "Firm: backend");
}
+static void dump_types(char const *const name)
+{
+ if (firm_dump.all_types)
+ dump_ir_prog_ext(dump_typegraph, name);
+}
+
void optimize_lower_ir_prog(void)
{
/* initialize implicit opts, just to be sure because really the frontend
@@ -734,9 +740,7 @@ void optimize_lower_ir_prog(void)
ir_timer_init_parent(t_vcg_dump);
timer_start(t_all_opt);
- if (firm_dump.all_types)
- dump_ir_prog_ext(dump_typegraph, "types.vcg");
-
+ dump_types("types.vcg");
dump_all("");
if (firm_opt.verify) {
@@ -747,6 +751,7 @@ void optimize_lower_ir_prog(void)
do_firm_optimizations();
do_firm_lowering();
+ dump_types("types-low.vcg");
timer_stop(t_all_opt);
}