X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeintlive_t.h;h=b8eb841dae0406c27faf0f4417f1d40f77373720;hb=afbbc0b1ccd684c4c24bfd43d0f994123245f39f;hp=6126a56cd70d1f97718fa100044033e90628479c;hpb=4f7329d7d8d3c676f076459a45a6d5ccf9c6fbba;p=libfirm diff --git a/ir/be/beintlive_t.h b/ir/be/beintlive_t.h index 6126a56cd..b8eb841da 100644 --- a/ir/be/beintlive_t.h +++ b/ir/be/beintlive_t.h @@ -31,8 +31,8 @@ static INLINE int _value_dominates_intrablock(const ir_node *a, const ir_node *b) { /* TODO: ? : can be removed?! */ - sched_timestep_t as = is_Phi(a) ? 0 : sched_get_time_step(a); - sched_timestep_t bs = is_Phi(b) ? 0 : sched_get_time_step(b); + sched_timestep_t as = sched_is_scheduled(a) ? sched_get_time_step(a) : 0; + sched_timestep_t bs = sched_is_scheduled(b) ? sched_get_time_step(b) : 0; return as <= bs; } @@ -45,8 +45,8 @@ static INLINE int _value_dominates_intrablock(const ir_node *a, const ir_node *b static INLINE int _value_strictly_dominates_intrablock(const ir_node *a, const ir_node *b) { /* TODO: ? : can be removed?! */ - sched_timestep_t as = is_Phi(a) ? 0 : sched_get_time_step(a); - sched_timestep_t bs = is_Phi(b) ? 0 : sched_get_time_step(b); + sched_timestep_t as = sched_is_scheduled(a) ? sched_get_time_step(a) : 0; + sched_timestep_t bs = sched_is_scheduled(b) ? sched_get_time_step(b) : 0; return as < bs; } @@ -115,8 +115,6 @@ static INLINE int _lv_values_interfere(const be_lv_t *lv, const ir_node *a, cons int b2a = _value_dominates(b, a); int res = 0; - stat_ev_ctx_push("beintlive"); - /* * Adjust a and b so, that a dominates b if * a dominates b or vice versa. @@ -133,7 +131,7 @@ static INLINE int _lv_values_interfere(const be_lv_t *lv, const ir_node *a, cons const ir_edge_t *edge; ir_node *bb = get_nodes_block(b); - stat_ev_dbl("beintlive_ignore", arch_irn_is(lv->birg->main_env->arch_env, a, ignore)); + //stat_ev_dbl("beintlive_ignore", arch_irn_is(lv->birg->main_env->arch_env, a, ignore)); /* * If a is live end in b's block it is @@ -165,7 +163,6 @@ static INLINE int _lv_values_interfere(const be_lv_t *lv, const ir_node *a, cons } end: - stat_ev_ctx_pop("beintlive"); return res; }