Uncommented missing function
[libfirm] / ir / be / bemain.c
index 716d0ec..d25617f 100644 (file)
@@ -3,6 +3,9 @@
  * @author Sebastian Hack
  * @date 25.11.2004
  */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <stdarg.h>
 
 #include "besched_t.h"
 #include "belistsched.h"
 #include "belive_t.h"
+#include "beutil.h"
 #include "bephicongr_t.h"
+#include "bechordal.h"
+#include "bechordal.h"
+#include "bephiopt.h"
 #include "phistat.h"
 
 #define N_PHASES 256
@@ -89,6 +96,7 @@ void be_init(void)
        be_liveness_init();
        be_numbering_init();
        be_ra_init();
+       be_ra_chordal_init();
        be_phi_congr_class_init();
 }
 
@@ -101,13 +109,14 @@ static void be_main_loop(void)
        for(i = 0, n = get_irp_n_irgs(); i < n; ++i) {
                ir_graph *irg = get_irp_irg(i);
 
+               localize_consts(irg);
                be_numbering(irg);
                list_sched(irg, trivial_selector, NULL);
                be_liveness(irg);
                be_ra_chordal(irg);
+               //be_phi_opt(irg);
 
-               dump_allocated_irg(irg);
-
+               //dump_allocated_irg(irg);
 
                be_ra_chordal_done(irg);
                be_numbering_done(irg);
@@ -117,6 +126,4 @@ static void be_main_loop(void)
 void be_main(int argc, const char *argv[])
 {
        be_main_loop();
-       /* next line only for statistics */
-       /* do_phi_statistics(); */
 }