assert(!bitset_is_set(matched_left, left));
bitset_andnot(tmp, matched_right);
- if(bitset_popcnt(tmp) == 0)
+ if(bitset_is_empty(tmp))
continue;
right = bitset_next_set(tmp, 0);
*/
if (!op->has_constraints ||
!values_interfere(birg, insn->irn, op->carrier) ||
- bitset_popcnt(tmp) == 0)
+ bitset_is_empty(tmp))
continue;
/*
bitset_and(bs, out_op->regs);
n_total = bitset_popcnt(op->regs) + bitset_popcnt(out_op->regs);
- if (bitset_popcnt(bs) > 0 && n_total < smallest_n_regs) {
+ if (!bitset_is_empty(bs) && n_total < smallest_n_regs) {
smallest = i;
smallest_n_regs = n_total;
}
int i, o, safe_count, safe_costs, unsafe_count, *unsafe_costs;
bitset_t *curr, *best;
bitset_pos_t pos;
- int max, next, curr_weight, best_weight = 0;
+ int next, curr_weight, best_weight = 0;
/* assign the nodes into two groups.
* safe: node has no interference, hence it is in every max stable set.
/* Exact Algorithm: Brute force */
curr = bitset_alloca(unsafe_count);
bitset_set_all(curr);
- while ((max = bitset_popcnt(curr)) != 0) {
+ while (!bitset_is_empty(curr)) {
/* check if curr is a stable set */
for (i=bitset_next_set(curr, 0); i!=-1; i=bitset_next_set(curr, i+1))
for (o=bitset_next_set(curr, i); o!=-1; o=bitset_next_set(curr, o+1)) /* !!!!! difference to ou_max_ind_set_costs(): NOT (curr, i+1) */