/**
* Determines a maximum weighted independent set with respect to
* the interference and conflict edges of all nodes in a qnode.
+ * TODO: This runs in n! in worst case. Use a heuristic iff n>???
*/
static int ou_max_ind_set_costs(unit_t *ou) {
be_chordal_env_t *chordal_env = ou->co->chordal_env;
/* for phis the copies are placed in the corresponding pred-block */
loop = get_irn_loop(get_Block_cfgpred_block(root_block, pos));
}
- if (loop)
- cost = 2*get_loop_depth(loop);
+ if (loop) {
+ int d = get_loop_depth(loop);
+ cost = d*d;
+ }
return cost+1;
}