From: Michael Beck Date: Fri, 31 Mar 2006 07:08:20 +0000 (+0000) Subject: more comments added X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c7997cc309ae96a03d5b9084a9d565db2dda57fa;p=libfirm more comments added --- diff --git a/ir/be/belistsched.c b/ir/be/belistsched.c index dcf012f49..45e6c445e 100644 --- a/ir/be/belistsched.c +++ b/ir/be/belistsched.c @@ -75,11 +75,17 @@ static int cmp_usage(const void *a, const void *b) } #endif +/** + * The trivial selector: + * Just assure that branches are executed last, otherwise select + * the first node ready. + */ static ir_node *trivial_select(void *block_env, pset *ready_set) { const arch_env_t *arch_env = block_env; ir_node *irn = NULL; + /* assure that branches are executed last */ for(irn = pset_first(ready_set); irn; irn = pset_next(ready_set)) { if(arch_irn_classify(arch_env, irn) != arch_irn_class_branch) { pset_break(ready_set);