X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbesched_t.h;h=b7390272755c6a85710dc48a516509e9bff0e5d7;hb=1345e0ae4de685dbb4012d7f66b6a54c3cf1f27b;hp=54f59db3a87065c21e88c10e0c931626bee7ed56;hpb=e91c1db21d945d622be14e27bd4c6c405c042723;p=libfirm diff --git a/ir/be/besched_t.h b/ir/be/besched_t.h index 54f59db3a..b73902727 100644 --- a/ir/be/besched_t.h +++ b/ir/be/besched_t.h @@ -8,6 +8,7 @@ #include "irnode_t.h" #include "irgraph_t.h" +#include "beutil.h" #include "besched.h" typedef unsigned int sched_timestep_t; @@ -54,15 +55,10 @@ static INLINE int _sched_get_time_step(const ir_node *irn) */ static INLINE int to_appear_in_schedule(ir_node *irn) { - int i, n; + if(get_irn_opcode(irn) == iro_Start) + return 1; - for(i = 0, n = get_irn_arity(irn); i < n; ++i) { - ir_node *op = get_irn_n(irn, i); - if(mode_is_datab(get_irn_mode(op))) - return 1; - } - - return mode_is_datab(get_irn_mode(irn)); + return is_data_node(irn); } /** @@ -194,10 +190,10 @@ static INLINE ir_node *_sched_add_before(ir_node *before, ir_node *irn) */ static INLINE ir_node *_sched_add_after(ir_node *after, ir_node *irn) { - sched_info_t *info = get_irn_sched_info(irn); + sched_info_t *info = get_irn_sched_info(irn); list_add(&info->list, &get_irn_sched_info(after)->list); - _sched_set_time_stamp(irn); - info->scheduled = 1; + _sched_set_time_stamp(irn); + info->scheduled = 1; return irn; }