projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7219aa9
)
more comments added
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 31 Mar 2006 07:08:20 +0000
(07:08 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 31 Mar 2006 07:08:20 +0000
(07:08 +0000)
ir/be/belistsched.c
patch
|
blob
|
history
diff --git
a/ir/be/belistsched.c
b/ir/be/belistsched.c
index
dcf012f
..
45e6c44
100644
(file)
--- 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);