* @brief Register pressure node selector.
* @author Sebastian Hack
* @date 29.08.2006
- * @version $Id$
*/
#include "config.h"
#include "iredges_t.h"
#include "irgwalk.h"
#include "irtools.h"
+#include "util.h"
#include "besched.h"
#include "belistsched.h"
sched_foreach(bl, irn) {
int i, n;
if (is_Proj(irn)
- || (arch_irn_get_flags(irn) & arch_irn_flags_not_scheduled))
+ || (arch_get_irn_flags(irn) & arch_irn_flags_not_scheduled))
continue;
for (i = 0, n = get_irn_arity(irn); i < n; ++i) {
ir_node *op = get_irn_n(irn, i);
if (is_Proj(op)
- || (arch_irn_get_flags(op) & arch_irn_flags_not_scheduled))
+ || (arch_get_irn_flags(op) & arch_irn_flags_not_scheduled))
continue;
sum += compute_max_hops(env, op);
assert(ir_nodeset_size(ready_set) > 0);
- ir_nodeset_iterator_init(&iter, ready_set);
- while ( (irn = ir_nodeset_iterator_next(&iter)) != NULL) {
+ foreach_ir_nodeset(ready_set, irn, iter) {
/*
Ignore branch instructions for the time being.
They should only be scheduled if there is nothing else.