summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaximilian Stemmer-Grabow <mail@mxsg.de>2021-06-10 16:32:45 +0200
committerAndreas Fried <andreas.fried@kit.edu>2021-12-02 12:57:28 +0100
commit29792094da31edcf4f341a03f4977140b0e364e3 (patch)
tree61825584dcbfa6ae6a2363f955e51f915695afdc
parent861d4e58e13994cdca3038d3b9d1fee0a86cfe95 (diff)
Adjust debugging output
-rw-r--r--ir/be/becopyheur4.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/ir/be/becopyheur4.c b/ir/be/becopyheur4.c
index 9e527b5..60dded9 100644
--- a/ir/be/becopyheur4.c
+++ b/ir/be/becopyheur4.c
@@ -585,7 +585,7 @@ static void aff_chunk_assure_weight(co_mst_env_t *env, aff_chunk_t *c)
}
}
- DB((dbg, LEVEL_1, "Recalculate weight for chunk #%u, (col: adjusted from -> to): ", c->id));
+ DB((dbg, LEVEL_4, "Recalculate weight for chunk #%u (adjusted col: from -> to): ", c->id));
double compressibility_factor = c->comp_reg_restr_count / (double)ARR_LEN(c->n);
@@ -600,11 +600,9 @@ static void aff_chunk_assure_weight(co_mst_env_t *env, aff_chunk_t *c)
}
c->color_affinity[i].cost = adjusted_cost;
-
- DB((dbg, LEVEL_1, "(%u: %d -> %d)", i, prior_cost, adjusted_cost));
}
- DB((dbg, LEVEL_1, "\n"));
+ DB((dbg, LEVEL_4, "\n"));
c->comp_reg_restr_count = register_restr_count;
c->weight = w;
@@ -1120,7 +1118,7 @@ static void color_aff_chunk(co_mst_env_t *env, aff_chunk_t *c)
double compressibility_factor = c->comp_reg_restr_count / (double)ARR_LEN(c->n);
- DB((dbg, LEVEL_1, "Coloring chunk #%u, costs are (col: adjusted from -> to): ", c->id));
+ DB((dbg, LEVEL_4, "Coloring chunk #%u, costs are (col: adjusted from -> to): ", c->id));
for (unsigned i = 0, n = env->n_regs; i < n; ++i) {
double dislike = n_int_chunks > 0 ? 1.0 - order[i].cost / n_int_chunks : 0.0;
@@ -1137,10 +1135,10 @@ static void color_aff_chunk(co_mst_env_t *env, aff_chunk_t *c)
order[i].col = i;
order[i].cost = adjusted_cost;
- DB((dbg, LEVEL_1, "(%u: %d -> %d)", i, prior_cost, adjusted_cost));
+ DB((dbg, LEVEL_4, "(%u: %d -> %d)", i, prior_cost, adjusted_cost));
}
- DB((dbg, LEVEL_1, "\n"));
+ DB((dbg, LEVEL_4, "\n"));
QSORT(order, env->n_regs, cmp_col_cost_gt);