summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2013-01-09 10:45:13 +0100
committerMatthias Braun <matze@braunis.de>2013-01-09 10:45:13 +0100
commita1546cd3f05d7e554ffaad0edb07d02ef7ab8e67 (patch)
treeb6c943c0cfffcd3579c5bd751947883b6183cf93
parent02dcb9aa80caa7c79628164886df6483c01be982 (diff)
hack to disable on the fly optimisations during constructionssaconstr
-rw-r--r--main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/main.c b/main.c
index a8cd28c..603c207 100644
--- a/main.c
+++ b/main.c
@@ -1415,6 +1415,15 @@ again:
panic("compiling multiple files/translation units not possible");
}
init_implicit_optimizations();
+ /* HACK HACK HACK REMOVE ME
+ * this is only here for the ssaconstr paper it disables on-the-fly
+ * optimizations during graph constructions (but still enables them
+ * during the later compilation phases) */
+ set_optimize(0);
+ set_opt_constant_folding(0);
+ set_opt_algebraic_simplification(0);
+ set_opt_cse(0);
+
translation_unit_to_firm(unit->ast);
already_constructed_firm = true;
timer_stop(t_construct);