More missing config.h
[libfirm] / ir / be / bechordal_main.c
index 03236f6..7955bb2 100644 (file)
@@ -253,7 +253,9 @@ static void be_ra_chordal_register_options(lc_opt_entry_t *grp)
                lc_opt_add_table(chordal_grp, be_chordal_options);
 
                co_register_options(chordal_grp);
+#ifdef WITH_JVM
                be_java_coal_register_options(chordal_grp);
+#endif
 #ifdef WITH_ILP
                be_spill_remat_register_options(chordal_grp);
 #endif
@@ -626,7 +628,7 @@ static be_ra_timer_t *be_ra_chordal_main(const be_irg_t *bi)
                BE_TIMER_POP(ra_timer.t_spill);
 
                if(be_stat_ev_is_active()) {
-                       spillcosts -= be_estimate_irg_costs(irg, main_env->arch_env, chordal_env.exec_freq);
+                       spillcosts = be_estimate_irg_costs(irg, main_env->arch_env, chordal_env.exec_freq) - spillcosts;
                        be_stat_ev_l("spillcosts", (long) spillcosts);
 
                        node_stats(&chordal_env, &node_stat);