projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed some requirements
[libfirm]
/
ir
/
be
/
becopyilp.c
diff --git
a/ir/be/becopyilp.c
b/ir/be/becopyilp.c
index
3c3e168
..
20bdbc6
100644
(file)
--- a/
ir/be/becopyilp.c
+++ b/
ir/be/becopyilp.c
@@
-235,7
+235,7
@@
static void pi_add_constr_A(problem_instance_t *pi) {
/* iterate over all possible colors in order */
bitset_clear_all(pos_regs);
/* iterate over all possible colors in order */
bitset_clear_all(pos_regs);
- arch_get_allocatable_regs(get_arch_env(pi->co), curr->irn, -1, p
i->co->chordal_env->cls, p
os_regs);
+ arch_get_allocatable_regs(get_arch_env(pi->co), curr->irn, -1, pos_regs);
bitset_foreach(pos_regs, col) {
int var_idx;
mangle_var2(pi->buf, 'x', nnr, col);
bitset_foreach(pos_regs, col) {
int var_idx;
mangle_var2(pi->buf, 'x', nnr, col);
@@
-353,14
+353,14
@@
static void pi_add_constr_E(problem_instance_t *pi) {
root = curr->nodes[0];
rootnr = get_irn_graph_nr(root);
bitset_clear_all(root_regs);
root = curr->nodes[0];
rootnr = get_irn_graph_nr(root);
bitset_clear_all(root_regs);
- arch_get_allocatable_regs(get_arch_env(pi->co), root, -1,
pi->co->chordal_env->cls,
root_regs);
+ arch_get_allocatable_regs(get_arch_env(pi->co), root, -1, root_regs);
/* for all arguments of root */
for (i = 1; i < curr->node_count; ++i) {
arg = curr->nodes[i];
argnr = get_irn_graph_nr(arg);
bitset_clear_all(arg_regs);
/* for all arguments of root */
for (i = 1; i < curr->node_count; ++i) {
arg = curr->nodes[i];
argnr = get_irn_graph_nr(arg);
bitset_clear_all(arg_regs);
- arch_get_allocatable_regs(get_arch_env(pi->co), arg, -1,
pi->co->chordal_env->cls,
arg_regs);
+ arch_get_allocatable_regs(get_arch_env(pi->co), arg, -1, arg_regs);
/* Introduce new variable and set factor in objective function */
mangle_var2(buf, 'y', rootnr, argnr);
/* Introduce new variable and set factor in objective function */
mangle_var2(buf, 'y', rootnr, argnr);
@@
-993,10
+993,6
@@
int co_ilp_opt(copy_opt_t *co, double time_limit) {
problem_instance_t *pi;
dbg = firm_dbg_register("ir.be.copyoptilp");
problem_instance_t *pi;
dbg = firm_dbg_register("ir.be.copyoptilp");
- if (!strcmp(co->name, DEBUG_IRG))
- firm_dbg_set_mask(dbg, DEBUG_IRG_LVL_ILP);
- else
- firm_dbg_set_mask(dbg, DEBUG_LVL_ILP);
pi = new_pi(co);
if (!pi->all_simplicial) {
pi = new_pi(co);
if (!pi->all_simplicial) {