X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeschedrand.c;h=a5e81f76723bd4e36434239a0b74c795a8893be7;hb=29189ce06a4930207bac3adda67d7d663dbb77f7;hp=6f7e38f9d407668f8995b1cd65e7cd1f80209c04;hpb=0fbcef83aa6060534172bb13e71cdadb04428806;p=libfirm diff --git a/ir/be/beschedrand.c b/ir/be/beschedrand.c index 6f7e38f9d..a5e81f767 100644 --- a/ir/be/beschedrand.c +++ b/ir/be/beschedrand.c @@ -28,7 +28,7 @@ #include -#include "besched_t.h" +#include "besched.h" #include "belistsched.h" /** @@ -47,7 +47,7 @@ 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)) { + if (!is_cfop(irn)) { only_branches_left = 0; break; } @@ -69,7 +69,7 @@ static ir_node *random_select(void *block_env, ir_nodeset_t *ready_set, } ++i; } - } while (arch_irn_class_is(irn, branch)); + } while (is_cfop(irn)); } return irn;