remove unnecessary and unused be_empty_set
[libfirm] / ir / be / beschedrand.c
index 6f7e38f..ea40e9f 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <stdlib.h>
 
-#include "besched_t.h"
+#include "besched.h"
 #include "belistsched.h"
 
 /**
@@ -46,8 +46,8 @@ static ir_node *random_select(void *block_env, ir_nodeset_t *ready_set,
 
        /* assure that branches and constants are executed last */
        ir_nodeset_iterator_init(&iter, ready_set);
-       while( (irn = ir_nodeset_iterator_next(&iter)) != NULL) {
-               if (!arch_irn_class_is(irn, branch)) {
+       while ( (irn = ir_nodeset_iterator_next(&iter)) != NULL) {
+               if (!is_cfop(irn)) {
                        only_branches_left = 0;
                        break;
                }
@@ -64,12 +64,12 @@ static ir_node *random_select(void *block_env, ir_nodeset_t *ready_set,
                        int i = 0;
                        ir_nodeset_iterator_init(&iter, ready_set);
                        while ((irn = ir_nodeset_iterator_next(&iter)) != NULL) {
-                               if(i == n) {
+                               if (i == n) {
                                        break;
                                }
                                ++i;
                        }
-               } while (arch_irn_class_is(irn, branch));
+               } while (is_cfop(irn));
        }
 
        return irn;