Added prototype for phi_ops_interfere
[libfirm] / ir / be / bephiopt.c
index 53de2bc..e46a0cf 100644 (file)
@@ -10,6 +10,7 @@
 #include "irgraph.h"
 #include "irnode.h"
 #include "irgwalk.h"
+#include "irouts.h"
 #include "irdom.h"
 
 #include "bephiopt.h"
 #include "bephicoal_t.h"
 #include "phistat.h"
 
+#define DEBUG_LVL SET_LEVEL_1
+
 #define DO_PHI_STATISTICS
 #undef DUMP_IRG_PHI_STAT
-#define DUMP_ALL_PHI_STAT
-
-#define DEBUG_LVL 1
 
+#define DUMP_CUMULATIVE
 #define CUMULATIVE_FILE "all.phistat"
+
 #define ENV_PHI_STAT "PHI_STAT"
 
 static firm_dbg_module_t *dbgphi = NULL;
@@ -64,7 +66,7 @@ void be_phi_opt(ir_graph* irg) {
                phi_stat_dump_pretty(buf);
        }
 #endif
-#ifdef DUMP_ALL_PHI_STAT
+#ifdef DUMP_CUMULATIVE
        phi_stat_update(CUMULATIVE_FILE);
 #endif
        phi_stat_update(getenv(ENV_PHI_STAT));
@@ -73,6 +75,7 @@ void be_phi_opt(ir_graph* irg) {
 
        /* try to coalesce the colors of each phi class */
        DBG((dbgphi, 1, "-----------------------> Coalescing <---------------------------------\n\n"));
+       compute_outs(irg);
        compute_doms(irg);
        be_phi_coalesce(all_phi_classes);
        free_dom_and_peace(irg);