added missing source
[libfirm] / ir / be / bechordal_main.c
index 53b5e48..0c9d4af 100644 (file)
@@ -80,9 +80,6 @@ static be_ra_chordal_opts_t options = {
        BE_CH_VRFY_WARN,
 };
 
-/** Enable extreme live range splitting. */
-static int be_elr_split = 0;
-
 typedef struct _post_spill_env_t {
        be_chordal_env_t            cenv;
        be_irg_t                    *birg;
@@ -153,7 +150,6 @@ static const lc_opt_table_entry_t be_chordal_options[] = {
        LC_OPT_ENT_ENUM_PTR ("perm",          "perm lowering options", &lower_perm_var),
        LC_OPT_ENT_ENUM_MASK("dump",          "select dump phases", &dump_var),
        LC_OPT_ENT_ENUM_PTR ("vrfy",          "verify options", &be_ch_vrfy_var),
-       LC_OPT_ENT_BOOL     ("elrsplit",      "enable extreme live range splitting", &be_elr_split),
        { NULL }
 };
 
@@ -405,6 +401,7 @@ static void pre_spill(const arch_isa_t *isa, int cls_idx, post_spill_env_t *pse)
        if (be_stat_ev_is_active()) {
                pse->pre_spill_cost = be_estimate_irg_costs(birg->irg,
                        birg->main_env->arch_env, birg->exec_freq);
+               be_stat_ev_pop();
        }
 #endif /* FIRM_STATISTICS */
 }
@@ -418,13 +415,15 @@ static void post_spill(post_spill_env_t *pse, int iteration) {
        ir_graph            *irg         = birg->irg;
        const be_main_env_t *main_env    = birg->main_env;
        be_options_t        *main_opts   = main_env->options;
-       static int          splitted     = 0;
        node_stat_t         node_stat;
 
 #ifdef FIRM_STATISTICS
        if (be_stat_ev_is_active()) {
                double spillcosts = be_estimate_irg_costs(irg, main_env->arch_env, birg->exec_freq) - pse->pre_spill_cost;
 
+               be_stat_tags[STAT_TAG_CLS] = pse->cls->name;
+               be_stat_ev_push(be_stat_tags, STAT_TAG_LAST, be_stat_file);
+
                be_stat_ev_l("spillcosts", (long) spillcosts);
 
                node_stats(birg, pse->cls, &node_stat);
@@ -459,11 +458,6 @@ static void post_spill(post_spill_env_t *pse, int iteration) {
        }
        BE_TIMER_POP(ra_timer.t_verify);
 
-       if (be_elr_split && ! splitted) {
-               extreme_liverange_splitting(chordal_env);
-               splitted = 1;
-       }
-
        /* Color the graph. */
        BE_TIMER_PUSH(ra_timer.t_color);
        be_ra_chordal_color(chordal_env);