+ /* Perform the following for each register class. */
+ for(j = 0, m = isa->get_n_reg_class(); j < m; ++j) {
+ be_chordal_env_t *chordal_env;
+ const arch_register_class_t *cls = isa->get_reg_class(j);
+ DBG((env.dbg, LEVEL_1, "----> Reg class: %s\n", cls->name));
+
+ /* spilling */
+ //be_spill_ilp(&session, cls);
+ be_spill_belady(&session, cls);
+#ifdef DUMP_SPILL
+ dump_ir_block_graph_sched(session.irg, "-spill");
+#endif
+ be_liveness(irg);
+ be_numbering(irg);
+ be_check_pressure(&session, cls);
+
+#if 0
+ {
+ FILE *f;
+ char buf[128];
+ ir_snprintf(buf, sizeof(buf), "%F_%s-live.txt", irg, cls->name);
+ if((f = fopen(buf, "wt")) != NULL) {
+ be_liveness_dump(session.irg, f);
+ fclose(f);
+ }
+ }
+#endif
+
+ /* allocation */
+ chordal_env = be_ra_chordal(&session, cls);
+#ifdef DUMP_ALLOCATED
+ dump_allocated_irg(env.arch_env, irg, "");
+#endif