summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beschedtrivial.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-10-02 14:09:50 +0200
committerMatthias Braun <matze@braunis.de>2014-10-02 20:08:02 +0200
commit342f0da205694858d2738df0a3d8d07529c9b187 (patch)
tree95530219c64d344c83b15b718cca9e605190b571 /ir/be/beschedtrivial.c
parentfc89bc1fb4d3d6f31f51e2f8d5f31511d514f3bd (diff)
listsched: do not put cfops into readyset unless nothing else is left
This puts the special logic for cfops into the common code instead of repeating it in all schedulers.
Diffstat (limited to 'ir/be/beschedtrivial.c')
-rw-r--r--ir/be/beschedtrivial.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/ir/be/beschedtrivial.c b/ir/be/beschedtrivial.c
index 3005fb4..a292538 100644
--- a/ir/be/beschedtrivial.c
+++ b/ir/be/beschedtrivial.c
@@ -20,20 +20,10 @@
#include "irnodeset.h"
/**
- * The trivial selector:
- * Just assure that branches are executed last, otherwise select
- * the first node ready.
+ * The trivial selector: select first node
*/
static ir_node *trivial_select(ir_nodeset_t *ready_set)
{
- /* assure that branches and constants are executed last */
- foreach_ir_nodeset(ready_set, irn, iter) {
- if (!is_cfop(irn)) {
- return irn;
- }
- }
-
- /* at last: schedule branches */
return ir_nodeset_first(ready_set);
}